/*
Theme Name: TheKRN
Theme URI: www.thekrn.com
Author: TheKRN
Author URI: www.thekrn.com
Description: A minimalist WordPress theme built for travel and tech writers. Features dark mode, real-time likes & bookmarks, built-in SEO (meta tags, schema, sitemap-ready), PWA app installation, and a full Customizer panel — no plugins required. Fully rebrandable: change colors, fonts, logo, and social links without touching code.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: TheKRN
*/

:root { 
    --orange: #FF4500; 
    --dark: #111111; 
    --text: #242424; 
    --meta: #6B6B6B; 
    --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif; 
    --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; 
    --bg: #ffffff;
    --card-bg: #ffffff;
}

.reading-progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--orange); z-index: 2000; transition: width 0.1s linear; }
.scroll-to-top-btn { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.2); z-index: 900; transition: 0.2s; }
.scroll-to-top-btn:hover { transform: translateY(-3px); }
.scroll-to-top-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.font-size-control { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 20px; overflow: hidden; }
.font-size-control button { background: var(--card-bg); border: none; padding: 8px 12px; font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--dark); cursor: pointer; }
.font-size-control button:first-child { border-right: 1px solid #ddd; }
body.dark-mode .font-size-control { border-color: #444; }
body.dark-mode .font-size-control button { background: #1a1a1a; color: #e8e8e8; border-color: #444; }
.theme-toggle-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #ddd; background: var(--card-bg); cursor: pointer; padding: 0; }
.theme-toggle-btn svg { width: 18px; height: 18px; fill: none; stroke: #000; stroke-width: 1.8; }
.theme-toggle-btn .icon-moon { display: none; }
body.dark-mode .theme-toggle-btn .icon-sun { display: none; }
body.dark-mode .theme-toggle-btn .icon-moon { display: block; }
body.dark-mode .theme-toggle-btn { background: #1a1a1a; border-color: #333; }
body.dark-mode .theme-toggle-btn svg { stroke: #fff; }

/* Dark mode overrides */
body.dark-mode { --dark: #f2f2f2; --text: #e8e8e8; --meta: #a0a0a0; --bg: #121212; --card-bg: #1a1a1a; background: var(--bg); color: var(--text); }
body.dark-mode .post-title, body.dark-mode .post-title a { color: #dcdcdc !important; }
body.dark-mode .post-body { color: #c8c8c8; }
body.dark-mode .post-body h1, body.dark-mode .post-body h2, body.dark-mode .post-body h3, body.dark-mode .post-body h4 { color: #f2f2f2; }
body.dark-mode .post-body strong, body.dark-mode .post-body b { color: #e8e8e8; }
body.dark-mode header { border-color: #2a2a2a; }
body.dark-mode .post-snippet, body.dark-mode .index-byline-text, body.dark-mode .post-meta, body.dark-mode .meta-top { color: #a0a0a0; }
body.dark-mode .index-card, body.dark-mode .comments-wrap, body.dark-mode .action-pill, body.dark-mode .post-nav-card { border-color: #2a2a2a; }
body.dark-mode .follow-subscribe-popup input[type="email"], body.dark-mode .search-box input, body.dark-mode .newsletter-box input { background: #1a1a1a; border-color: #2a2a2a; color: #fff; }
body.dark-mode .post-nav-card { color: #a0a0a0; }
body.dark-mode .post-nav-card:hover { color: #fff; }
body.dark-mode .tag-pill { background: #1a1a1a; border-color: #333; color: #ccc; }
body.dark-mode .author-bio-card, body.dark-mode .more-from-card, body.dark-mode .floating-actions, body.dark-mode .newsletter-box, body.dark-mode .popular-posts { border-color: #2a2a2a; }
body.dark-mode .author-bio-card { background: linear-gradient(135deg, #1a1a1a 0%, #1f1f1f 100%); }
body.dark-mode .more-from-card { background: #1a1a1a; }
body.dark-mode .bio-name { color: #f2f2f2; }
body.dark-mode .more-from-card .more-date, body.dark-mode footer { color: #a0a0a0; }
body.dark-mode .newsletter-box p { color: #a0a0a0; }
body.dark-mode .bio-avatar, body.dark-mode .author-avatar-auto, body.dark-mode .index-avatar { text-decoration: none; }
* { box-sizing: border-box; }
body { font-family: var(--serif); color: var(--text); line-height: 1.8; font-size: 20px; letter-spacing: -0.003em; margin: 0; background: var(--bg); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px 40px 20px; display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
main { grid-column: 1; }
aside { grid-column: 2; }

header { grid-column: 1 / -1; border-bottom: 2px solid #eee; padding: 20px 0; margin-bottom: 20px; position: sticky; top: 0; background: var(--bg); z-index: 1000; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav-list { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.primary-nav-list a { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--text); text-decoration: none; }
.primary-nav-list a:hover { color: var(--orange); }
.nav-toggle-btn { display: none; background: none; border: 1px solid #ddd; border-radius: 10px; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 2; }
@media (max-width: 768px) {
    .primary-nav { display: none; flex-basis: 100%; order: 3; }
    .primary-nav.is-open { display: flex; }
    .primary-nav-list { flex-direction: column; gap: 4px; width: 100%; padding: 12px 0; }
    .primary-nav-list a { display: block; padding: 10px 4px; border-bottom: 1px solid #f0f0f0; }
    .nav-toggle-btn { display: flex; }
}
body.dark-mode .primary-nav-list a { color: #e8e8e8; }
body.dark-mode .nav-toggle-btn { border-color: #333; }
body.dark-mode .nav-toggle-btn svg { stroke: #e8e8e8; }
body.dark-mode .primary-nav-list a { border-bottom-color: #2a2a2a; }
.admin-bar header { top: 32px; }
@media (max-width: 782px) {
    .admin-bar header { top: 46px; }
}
body.admin-bar header { top: 32px; }
@media (max-width: 782px) { body.admin-bar header { top: 46px; } }

footer { grid-column: 1 / -1; text-align: center; padding: 40px 20px; margin-top: 20px; border-top: 4px solid var(--orange); font-family: var(--sans); color: var(--meta); font-size: 14px; line-height: 2; }
.footer-links a { color: var(--orange); font-weight: 700; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copyright-brand { color: var(--orange); font-weight: 700; text-decoration: none; }
.copyright-brand:hover { text-decoration: underline; }
.footer-categories { display: none; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0; }
.footer-categories.is-open { display: flex; }
.footer-categories a { color: var(--orange); font-weight: 600; text-decoration: none; font-size: 13px; }
.footer-categories a:hover { text-decoration: underline; }
.install-app-btn { display: flex; align-items: center; gap: 8px; background: var(--card-bg); color: var(--dark); border: 1px solid var(--dark); border-radius: 20px; padding: 8px 16px; font-family: var(--sans); font-weight: 600; font-size: 14px; cursor: pointer; transition: 0.2s; }
.install-app-btn:hover { background: #000; color: #fff; }
.install-app-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.ios-install-tip { grid-column: 1 / -1; background: var(--dark); color: #fff; font-family: var(--sans); font-size: 14px; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ios-install-tip button { background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; }
.sticky-wrap { position: sticky; top: 100px; }

.logo-container a { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; min-width: 0; }
.logo-r { background-color: var(--orange); color: white; font-weight: 800; font-size: 22px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-family: var(--serif); flex-shrink: 0; }
.logo-text { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: -0.01em; color: var(--dark); white-space: nowrap; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.logo-tagline { font-family: var(--sans); font-size: 12px; color: var(--meta); font-weight: 400; white-space: nowrap; }

.post-title { font-family: var(--sans); font-weight: 800; font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px 0; color: var(--dark); }
.post-title a { color: var(--dark); text-decoration: none; }

.post-meta { display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: var(--meta); margin-bottom: 30px; font-family: var(--sans); }
.post-meta .meta-top { color: var(--meta); font-size: 15px; }
.post-meta .meta-top .meta-dot { margin: 0 6px; }
.post-meta .byline-row { display: flex; align-items: center; gap: 10px; }
.follow-pill { margin-left: auto; background: var(--card-bg); color: var(--dark); border: 1px solid var(--dark); border-radius: 20px; padding: 7px 16px; font-family: var(--sans); font-weight: 600; font-size: 14px; cursor: pointer; transition: 0.2s; }
.follow-pill:hover { background: #000; color: #fff; }
.follow-pill.is-active { background: #000; color: #fff; }
.follow-subscribe-popup { margin-top: 10px; width: 100%; }
.follow-subscribe-popup form { display: flex; gap: 8px; }
.follow-subscribe-popup input[type="email"] { flex: 1; padding: 10px 14px; border: 1px solid #ddd; border-radius: 20px; font-family: var(--sans); font-size: 14px; outline: none; }
.follow-subscribe-popup input[type="email"]:focus { border-color: var(--orange); }
.follow-subscribe-popup button[type="submit"] { background: var(--orange); color: #fff; border: none; border-radius: 20px; padding: 10px 18px; font-family: var(--sans); font-weight: 600; font-size: 14px; cursor: pointer; }
.follow-subscribed-msg { color: #1a7f37; font-family: var(--sans); font-weight: 600; font-size: 14px; }
.newsletter-subscribed-msg { display: block; color: #1a7f37; font-family: var(--sans); font-weight: 600; font-size: 14px; margin-top: 8px; }
.meta-actions { display: flex; gap: 12px; margin-top: 4px; }
.action-pill { display: flex; align-items: center; gap: 8px; background: var(--card-bg); color: var(--dark); border: 1px solid #e6e6e6; border-radius: 20px; padding: 8px 18px; font-family: var(--sans); font-weight: 500; font-size: 15px; cursor: pointer; transition: 0.2s; }
.action-pill:hover { border-color: var(--dark); }
.action-pill svg { width: 18px; height: 18px; fill: none; stroke: #000; stroke-width: 1.6; }
.author-avatar-auto { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 16px; flex-shrink: 0; overflow: hidden; }
.author-avatar-auto img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.post-meta .author-name { font-weight: 600; color: var(--dark); font-size: 15px; }
.author-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.author-link:hover .author-name { text-decoration: underline; }
.author-link .author-name { color: var(--dark); }

.hero-image-wrap { width: 100%; margin: 24px 0 34px 0; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.08); aspect-ratio: 16/9; background: #f2f2f2; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.breadcrumb-trail { font-family: var(--sans); font-size: 13px; color: var(--meta); margin-bottom: 14px; }
.breadcrumb-trail a { color: var(--meta); text-decoration: none; }
.breadcrumb-trail a:hover { color: var(--orange); text-decoration: underline; }
.breadcrumb-trail span[aria-current] { color: var(--dark); font-weight: 600; }
.breadcrumb-sep { margin: 0 8px; color: #ccc; }
body.dark-mode .breadcrumb-trail span[aria-current] { color: #f2f2f2; }

.faq-section { margin: 36px 0; }
.faq-heading { font-family: var(--sans); font-weight: 800; font-size: 22px; margin-bottom: 16px; }
.faq-item { border-bottom: 1px solid #f0f0f0; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: none; border: none; padding: 16px 0; font-family: var(--sans); font-weight: 700; font-size: 16px; color: var(--dark); text-align: left; cursor: pointer; }
.faq-question svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; transition: transform 0.2s; }
.faq-item.is-open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.is-open .faq-answer { max-height: 500px; }
.faq-answer p { font-family: var(--serif); font-size: 16px; line-height: 1.6; color: #444; padding-bottom: 18px; margin: 0; }
body.dark-mode .faq-item { border-bottom-color: #2a2a2a; }
body.dark-mode .faq-question { color: #f2f2f2; }
body.dark-mode .faq-answer p { color: #ccc; }
.post-body { font-family: var(--serif); font-size: 20px; line-height: 1.8; }
.post-snippet { font-family: var(--serif); font-size: 19px; line-height: 1.6; color: #444; }

/* Index / homepage feed cards */
.stories-row { display: flex; gap: 18px; overflow-x: auto; padding: 4px 4px 20px 4px; margin-bottom: 20px; border-bottom: 1px solid #f0f0f0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.stories-row::-webkit-scrollbar { display: none; }
.story-circle { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; flex-shrink: 0; width: 68px; }
.story-circle-img { width: 64px; height: 64px; border-radius: 50%; padding: 2.5px; background: linear-gradient(135deg, var(--orange), #ffb199); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.story-circle-img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; display: block; }
.story-circle-letter { width: 100%; height: 100%; border-radius: 50%; background: var(--card-bg); border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-weight: 700; font-size: 22px; color: var(--orange); }
.story-circle-label { font-family: var(--sans); font-size: 11px; color: var(--text); text-align: center; line-height: 1.3; max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.dark-mode .stories-row { border-bottom-color: #2a2a2a; }
body.dark-mode .story-circle-img img { border-color: #121212; }
body.dark-mode .story-circle-letter { border-color: #121212; }

.index-card { padding: 28px 0; border-bottom: 1px solid #f0f0f0; }
.index-card:first-child { padding-top: 0; }
.index-byline { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 14px; color: var(--meta); margin-bottom: 10px; flex-wrap: wrap; }
.index-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; font-family: var(--serif); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; text-decoration: none; }
.index-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.index-byline-text { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.index-byline-text a { color: var(--meta); font-weight: 600; text-decoration: none; }
.index-byline-text a:hover { text-decoration: underline; }
.index-byline-text .meta-dot { margin: 0 2px; }
.index-title { font-family: var(--sans); font-weight: 800; font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 8px 0; }
.index-title a { color: var(--dark); text-decoration: none; }
.index-snippet-link { text-decoration: none; }
.index-snippet-link .post-snippet { font-size: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.index-engage { display: flex; align-items: center; gap: 20px; margin-top: 16px; font-family: var(--sans); font-size: 14px; color: var(--meta); }
.index-engage .engage-item { display: flex; align-items: center; gap: 6px; background: none; border: none; padding: 0; color: var(--meta); cursor: pointer; font-family: var(--sans); font-size: 14px; }
.index-engage svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.bookmark-btn { margin-left: auto; }
.bookmark-btn.is-active svg { fill: #000; stroke: #000; }
.like-btn.is-active svg { fill: #e0245e; stroke: #e0245e; }
.post-body h1, .post-body h2, .post-body h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; }
.post-body img { max-width: 100%; height: auto; border-radius: 4px; }
.post-body blockquote { border-left: 3px solid var(--dark); margin: 35px 0; padding: 4px 0 4px 28px; font-style: italic; font-size: 26px; font-family: var(--serif); line-height: 1.4; color: var(--dark); }
body.dark-mode .post-body blockquote { color: #eaeaea; border-left-color: #eaeaea; }

.post-labels { margin: 15px 0; font-size: 14px; font-family: var(--sans); display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { background: #f2f2f2; border: 1px solid transparent; color: var(--dark); padding: 6px 16px; border-radius: 20px; text-decoration: none; font-weight: 600; font-size: 13px; transition: 0.2s; }
.tag-pill:hover { background: #e8e8e8; }
.author-bio-card { display: flex; align-items: center; gap: 18px; margin: 44px 0; padding: 28px; border: 1px solid #f0f0f0; border-radius: 16px; background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%); }
.bio-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 22px; overflow: hidden; flex-shrink: 0; text-decoration: none; }
.bio-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-bio-card a { text-decoration: none; }
.author-bio-card a, .author-bio-card a:hover, .author-bio-card a:visited, .bio-avatar { text-decoration: none !important; }
.bio-content { flex: 1; min-width: 0; font-family: var(--sans); }
.bio-written-by { display: block; font-size: 13px; color: var(--meta); margin-bottom: 2px; }
.bio-name { font-size: 17px; font-weight: 700; color: var(--dark); text-decoration: none; }
.bio-name:hover { text-decoration: underline; }
.bio-about { margin: 6px 0 0 0; font-size: 14px; color: var(--meta); line-height: 1.5; }
.bio-follow-pill { flex-shrink: 0; }
.floating-actions { position: fixed; left: 24px; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; align-items: center; gap: 18px; background: var(--card-bg); border: 1px solid #f0f0f0; border-radius: 30px; padding: 18px 12px; box-shadow: 0 4px 14px rgba(0,0,0,0.06); z-index: 500; }
.floating-actions button, .floating-actions a { background: none; border: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--meta); font-family: var(--sans); font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; }
.floating-actions svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.floating-actions .like-btn.is-active svg { fill: #e0245e; stroke: #e0245e; }
.floating-actions .bookmark-btn.is-active svg { fill: #000; stroke: #000; }
@media (min-width: 1180px) { .floating-actions { display: flex; } }
@media (max-width: 768px) {
    .container { grid-template-columns: 1fr; }
    main, aside { grid-column: 1 / -1; }
    .post-nav { align-items: center; }
}
@media (max-width: 480px) {
    .logo-text { font-size: 19px; }
    .logo-r { width: 34px; height: 34px; font-size: 18px; }
    .header-actions { gap: 6px; }
    .install-app-label { display: none; }
    .install-app-btn { padding: 8px 10px; }
}
.more-from-section { margin: 40px 0; }
.more-from-heading { font-family: var(--sans); font-weight: 800; font-size: 20px; color: var(--dark); margin-bottom: 18px; letter-spacing: -0.01em; }
.more-from-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.more-from-card { display: block; text-decoration: none; border: 1px solid #f0f0f0; border-radius: 14px; overflow: hidden; transition: 0.25s; background: var(--card-bg); }
.more-from-card:hover { border-color: #ddd; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }
.more-from-card .more-thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #f2f2f2; display: block; }
.more-from-card .more-body { padding: 16px 18px; }
.more-from-card .more-title { font-family: var(--sans); font-weight: 700; font-size: 16px; color: var(--dark); line-height: 1.35; margin: 0 0 6px 0; }
.more-from-card .more-date { font-family: var(--sans); font-size: 13px; color: var(--meta); }
    

.post-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 40px 0; font-family: var(--sans); }
.post-nav-card { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; width: auto; background: none; padding: 0; border: none; box-shadow: none; border-radius: 0; color: var(--meta); font-weight: 600; font-size: 15px; text-decoration: none; transition: 0.2s; }
.post-nav-card:hover { color: var(--dark); box-shadow: none; transform: none; }
.post-nav-card svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.post-nav-next { margin-left: auto; }

.comments-wrap { margin-top: 50px; padding-top: 30px; border-top: 1px solid #f0f0f0; }
.comments-wrap h3 { font-family: var(--sans); font-weight: 800; font-size: 20px; color: var(--dark); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.comments-wrap .responses-icon { width: 20px; height: 20px; fill: none; stroke: #000; stroke-width: 1.6; }

/* Native WP comment list styling */
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #f0f0f0; }
.comment-list .comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-list .avatar { border-radius: 50%; }
.comment-list .fn { font-family: var(--sans); font-weight: 700; font-size: 15px; color: var(--dark); font-style: normal; }
.comment-list .comment-metadata { font-family: var(--sans); font-size: 13px; color: var(--meta); }
.comment-list .comment-metadata a { color: var(--meta); }
.comment-list .comment-content p { font-family: var(--serif); font-size: 17px; line-height: 1.6; margin: 6px 0 0 0; }
.comment-list .reply a { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--orange); text-decoration: none; }
.no-comments { font-family: var(--sans); color: var(--meta); }
#respond { margin-top: 30px; }
#respond .comment-reply-title { font-family: var(--sans); font-weight: 700; font-size: 18px; }
.comment-form-comment textarea { width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 10px; font-family: var(--serif); font-size: 16px; resize: vertical; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 20px; font-family: var(--sans); margin-bottom: 10px; }
#respond .form-submit input[type="submit"] { background: var(--card-bg); color: var(--dark); border: 1px solid var(--dark); border-radius: 20px; padding: 8px 20px; font-family: var(--sans); font-weight: 600; cursor: pointer; }
#respond .form-submit input[type="submit"]:hover { background: #000; color: #fff; }

/* Footer social icons */
.footer-social { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; margin: 16px 0; font-family: var(--sans); font-size: 13px; }
.footer-social a { color: var(--meta); text-decoration: none; font-weight: 600; }
.footer-social a:hover { color: var(--orange); }
.social-icon-link { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; }
.social-icon-link svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.social-icon-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #f2f2f2; flex-shrink: 0; }
.social-icon-link svg { width: 18px; height: 18px; fill: currentColor; stroke: none; display: block; }
.social-icon-link:hover { background: var(--orange); color: #fff; }
body.dark-mode .social-icon-link { background: #262626; color: #e8e8e8; }
body.dark-mode .social-icon-link:hover { background: var(--orange); color: #fff; }

.search-box { margin-bottom: 40px; }
.search-wrapper { position: relative; width: 100%; display: block; }
.search-box input { width: 100%; padding: 12px 15px 12px 40px; border: 2px solid #eee; border-radius: 25px; font-family: var(--sans); font-size: 15px; outline: none; background: var(--bg); color: var(--text); }
.search-box input:focus { border-color: var(--orange); }
.search-box { position: relative; }
.live-search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--card-bg); border: 1px solid #eee; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); z-index: 100; max-height: 360px; overflow-y: auto; }
.live-search-item { display: block; padding: 12px 16px; text-decoration: none; border-bottom: 1px solid #f5f5f5; }
.live-search-item:last-child { border-bottom: none; }
.live-search-item .lsr-title { font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--dark); margin: 0 0 2px 0; }
.live-search-item .lsr-date { font-family: var(--sans); font-size: 12px; color: var(--meta); }
.live-search-empty { padding: 14px 16px; font-family: var(--sans); font-size: 14px; color: var(--meta); }
body.dark-mode .live-search-results { background: #1a1a1a; border-color: #2a2a2a; }
body.dark-mode .live-search-item { border-bottom-color: #2a2a2a; }
body.dark-mode .live-search-item .lsr-title { color: #f2f2f2; }
.highlight-share-popup { position: absolute; z-index: 3000; background: #111; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
.highlight-share-popup button { display: flex; align-items: center; gap: 6px; background: none; border: none; color: #fff; padding: 9px 14px; font-family: var(--sans); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.highlight-share-popup svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; }
.toc-box { border: 1px solid #eee; border-radius: 12px; margin: 20px 0 30px 0; overflow: hidden; }
.toc-toggle { width: 100%; display: flex; align-items: center; gap: 10px; background: #fafafa; border: none; padding: 14px 18px; font-family: var(--sans); font-weight: 700; font-size: 15px; color: var(--dark); cursor: pointer; text-align: left; }
.toc-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.toc-list { list-style: none; margin: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.toc-box.toc-open .toc-list { max-height: 400px; overflow-y: auto; }
.toc-list li { border-top: 1px solid #f5f5f5; }
.toc-list a { display: block; padding: 10px 18px; font-family: var(--sans); font-size: 14px; color: var(--meta); text-decoration: none; }
.toc-list a:hover { color: var(--orange); }

.popular-posts { background: var(--card-bg); padding: 25px; border: 2px solid #eee; border-radius: 15px; margin-bottom: 40px; }
.popular-posts h3 { font-family: var(--sans); font-size: 20px; border-bottom: 2px solid var(--orange); padding-bottom: 10px; margin: 0 0 15px 0; color: var(--dark); }
.popular-posts ul { list-style: none; margin: 0; padding: 0; }
.popular-posts li { border-bottom: 1px solid #f0f0f0; padding: 12px 0; }
.popular-posts li:last-child { border-bottom: none; }
.popular-posts a { font-family: var(--serif); font-size: 16px; color: var(--dark); text-decoration: none; line-height: 1.4; }
.popular-posts a:hover { color: var(--orange); }
body.dark-mode .popular-posts { background: #1a1a1a; border-color: #2a2a2a; }
body.dark-mode .popular-posts h3 { color: #f2f2f2; }
body.dark-mode .popular-posts li { border-bottom-color: #2a2a2a; }
body.dark-mode .popular-posts a { color: #e8e8e8; }
.toc-list .toc-h3 a { padding-left: 34px; font-size: 13px; }
body.dark-mode .toc-box { border-color: #2a2a2a; }
body.dark-mode .toc-toggle { background: #1a1a1a; color: #f2f2f2; }
body.dark-mode .toc-list li { border-top-color: #2a2a2a; }
.lens-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); fill: #888; pointer-events: none; }

/* Custom Newsletter Box Styles */
.newsletter-box { background: var(--bg); padding: 25px; border: 2px solid #eee; border-radius: 15px; margin-bottom: 40px; }
.newsletter-box h3 { font-family: var(--sans); font-size: 20px; border-bottom: 2px solid var(--orange); padding-bottom: 10px; margin: 0 0 15px 0; color: var(--dark); }
.newsletter-box p { font-size: 14px; color: #666; font-family: var(--sans); margin: 0 0 20px 0; }
.newsletter-box input[type="email"] { width: 100%; padding: 12px 15px; border: 2px solid #eee; border-radius: 8px; font-family: var(--sans); font-size: 14px; margin-bottom: 12px; outline: none; }
.newsletter-box input[type="email"]:focus { border-color: var(--orange); }
.newsletter-box button[type="submit"] { width: 100%; background: var(--orange); color: #fff; border: none; border-radius: 8px; padding: 14px; font-family: var(--sans); font-weight: 700; font-size: 15px; cursor: pointer; }
.newsletter-box button[type="submit"]:hover { background: var(--dark); }