/*
Theme Name: Authoria
Theme URI: https://arifazad.com/
Author: Arif Azad
Description: Authoria — আরিফ আজাদের অফিসিয়াল লেখক ওয়েবসাইটের জন্য মিনিমাল, প্রিমিয়াম কাস্টম ওয়ার্ডপ্রেস থিম। বই, ব্লগ, বুক ক্লাব, লেখক পরিচিতি, পাঠক রিভিউ, প্রশ্নোত্তর ও ফেসবুক ফিড ফিচার করে।
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: authoria
*/

:root {
  --ivory: #F7F5F0;
  --ivory-deep: #EFEBE2;
  --ink: #1C1B19;
  --ink-soft: #55524C;
  --wine: #7A2734;
  --wine-deep: #5E1E28;
  --gold: #B08D57;
  --hair: rgba(28,27,25,0.12);
  --serif: 'Noto Serif Bengali', 'Noto Serif', serif;
  --sans: 'Hind Siliguri', system-ui, sans-serif;
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.screen-reader-text { position: absolute !important; left: -9999px; }

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--ivory) 90%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hair);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.navlinks { display: flex; gap: 34px; font-size: 15.5px; color: var(--ink-soft); list-style: none; margin: 0; padding: 0; }
.navlinks li { display: inline-block; }
.navlinks a:hover, .navlinks a:focus { color: var(--wine); }
.navlinks .contact-link a {
  color: var(--wine);
  border: 1px solid var(--wine);
  padding: 7px 18px;
  border-radius: 2px;
  display: inline-block;
}
.navlinks .contact-link a:hover { background: var(--wine); color: var(--ivory); }
.menu-toggle { display: none; font-size: 26px; background: none; border: none; cursor: pointer; color: var(--ink); }

/* ---- hero ---- */
.hero { padding: 100px 28px 90px; text-align: center; }
.hero .kicker { font-size: 15px; color: var(--gold); margin-bottom: 22px; letter-spacing: 0.02em; }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 6vw, 58px); line-height: 1.25;
  max-width: 780px; margin: 0 auto 30px;
}
.quote-rotator {
  max-width: 600px; margin: 0 auto 42px; padding: 26px 30px;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.quote-main { min-height: 80px; transition: opacity 0.4s ease; }
.quote-main p { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-soft); margin: 0 0 6px; line-height: 1.6; }
.quote-main span { font-size: 13.5px; color: var(--gold); }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  font-size: 15.5px; padding: 13px 28px; border-radius: 2px; display: inline-block;
}
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-secondary { border: 1px solid var(--ink); color: var(--ink); }

/* ---- section heading pattern ---- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 40px; flex-wrap: wrap; gap: 12px;
}
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: 30px; margin: 0; }
.section-head a { font-size: 15px; color: var(--wine); border-bottom: 1px solid var(--wine); padding-bottom: 2px; }

/* ---- books shelf ---- */
.books-section { background: var(--ivory-deep); padding: 90px 0; }
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.cover {
  aspect-ratio: 3/4.4; background: linear-gradient(155deg, var(--wine) 0%, var(--wine-deep) 100%);
  border-radius: 2px; display: flex; align-items: flex-end; padding: 20px; margin-bottom: 16px;
  box-shadow: 0 14px 28px -14px rgba(28,27,25,0.35); overflow: hidden; position: relative;
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover span { position: relative; font-family: var(--serif); color: var(--ivory); font-size: 15px; line-height: 1.5; }
.book-card h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.book-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; }
.book-card .buy { font-size: 13.5px; color: var(--wine); }

/* ---- book detail page ---- */
.book-detail { padding: 90px 0 100px; }
.detail-grid { display: grid; grid-template-columns: 230px 1fr; gap: 50px; }
.detail-cover {
  aspect-ratio: 3/4.4; background: linear-gradient(155deg, var(--wine) 0%, var(--wine-deep) 100%);
  border-radius: 3px; display: flex; align-items: flex-end; padding: 26px;
  box-shadow: 0 20px 40px -18px rgba(28,27,25,0.4); overflow: hidden; position: relative;
}
.detail-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-cover span { position: relative; font-family: var(--serif); color: var(--ivory); font-size: 19px; line-height: 1.5; }
.detail-body .eyebrow { font-size: 14px; color: var(--gold); margin-bottom: 10px; }
.detail-body h1 { font-family: var(--serif); font-size: 36px; font-weight: 600; margin: 0 0 14px; }
.detail-meta { display: flex; gap: 22px; font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; flex-wrap: wrap; }
.detail-body .desc { font-size: 15.5px; color: var(--ink-soft); max-width: 540px; margin-bottom: 34px; }
.buy-links { display: flex; flex-direction: column; gap: 12px; max-width: 340px; }
.buy-link { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--hair); padding: 15px 20px; border-radius: 2px; font-size: 15px; }
.buy-link:hover { border-color: var(--wine); color: var(--wine); }
.buy-link .price { font-size: 13px; color: var(--gold); }
.book-rating-badge { color: var(--gold); }
.resource-links { display: flex; flex-direction: column; gap: 10px; max-width: 340px; margin-top: 14px; }
.resource-link { font-size: 14px; color: var(--ink-soft); padding: 10px 4px; border-bottom: 1px dashed var(--hair); display: block; }
.resource-link:hover { color: var(--wine); }
.embedded-reviews { margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--hair); }
.embedded-reviews h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 20px; }
.mini-review { padding: 16px 0; border-bottom: 1px solid var(--hair); }
.mini-review .row { display: flex; justify-content: space-between; margin-bottom: 6px; flex-wrap: wrap; gap: 6px; }
.mini-review .stars { color: var(--gold); font-size: 13.5px; letter-spacing: 2px; }
.mini-review .who { font-size: 14px; font-weight: 500; }
.mini-review p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.see-all-reviews { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--wine); border-bottom: 1px solid var(--wine); padding-bottom: 2px; }

/* ---- blog slider (front page) ---- */
.blog-section { padding: 90px 0; }
.slider-shell { position: relative; }
.slider { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.post-card { flex: 0 0 320px; scroll-snap-align: start; }
.post-thumb {
  aspect-ratio: 16/10; border-radius: 3px; background: linear-gradient(155deg, #C9C2AE 0%, #ADA486 100%);
  margin-bottom: 18px; overflow: hidden;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .tag { font-size: 12.5px; color: var(--wine); margin-bottom: 8px; display: block; }
.post-card h3 { font-family: var(--serif); font-weight: 500; font-size: 19px; margin: 0 0 8px; line-height: 1.4; }
.post-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; }
.post-card .date { font-size: 13px; color: var(--gold); }
.slider-nav { display: flex; gap: 10px; margin-top: 28px; justify-content: flex-end; }
.slider-nav button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hair);
  background: transparent; font-size: 16px; cursor: pointer; color: var(--ink);
}
.slider-nav button:hover { background: var(--ink); color: var(--ivory); }

/* ---- single blog post ---- */
.single-post { padding: 80px 0 100px; }
.single-post .post-header { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.single-post .post-header .tag { font-size: 14px; color: var(--wine); }
.single-post .post-header h1 { font-family: var(--serif); font-size: 40px; font-weight: 600; margin: 14px 0; }
.single-post .post-header .date { font-size: 14px; color: var(--ink-soft); }
.single-post .post-thumb-large { max-width: 780px; margin: 0 auto 40px; border-radius: 3px; overflow: hidden; }
.single-post .content { max-width: 700px; margin: 0 auto; font-size: 16.5px; }
.single-post .content p { margin: 0 0 22px; }
.single-post .content h2 { font-family: var(--serif); font-size: 26px; margin: 40px 0 18px; }
.single-post .content img { border-radius: 3px; margin: 30px 0; }

/* ---- facebook feed strip ---- */
.social-section { background: var(--ink); color: var(--ivory); padding: 80px 0; }
.social-section .section-head h2, .social-section .section-head a { color: var(--ivory); }
.social-section .section-head a { border-bottom-color: var(--gold); color: var(--gold); }
.fb-embed-wrap { display: flex; justify-content: center; overflow-x: auto; }
.fb-placeholder {
  border: 1px dashed rgba(247,245,240,0.3); border-radius: 4px; padding: 40px; text-align: center;
  color: rgba(247,245,240,0.6); font-size: 14.5px; max-width: 500px; margin: 0 auto;
}
.fb-row {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; scrollbar-width: none;
}
.fb-row::-webkit-scrollbar { display: none; }
.fb-card {
  flex: 0 0 300px; scroll-snap-align: start; display: block;
  background: rgba(247,245,240,0.06); border: 1px solid rgba(247,245,240,0.14);
  border-radius: 4px; overflow: hidden;
}
.fb-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 0; }
.fb-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 13px; color: var(--ink); flex-shrink: 0;
}
.fb-head .who { line-height: 1.35; }
.fb-head .name { font-size: 14px; font-weight: 500; color: var(--ivory); }
.fb-head .time { font-size: 12px; color: rgba(247,245,240,0.55); }
.fb-card p.body { font-size: 14px; color: rgba(247,245,240,0.9); margin: 12px 0; padding: 0 16px; }
.fb-media { aspect-ratio: 16/10; overflow: hidden; }
.fb-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---- author page ---- */
.author-page { padding: 90px 0 100px; }
.author-intro { max-width: 620px; margin: 0 auto 70px; text-align: center; }
.author-intro h1 { font-family: var(--serif); font-size: 34px; font-weight: 600; margin: 0 0 16px; }
.author-intro .content { font-size: 15.5px; color: var(--ink-soft); }
.timeline { max-width: 640px; margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; left: 84px; top: 6px; bottom: 6px; width: 1px; background: var(--hair); }
.tl-item { display: flex; gap: 28px; padding-bottom: 46px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-year { flex: 0 0 60px; font-family: var(--serif); font-size: 16px; color: var(--gold); text-align: right; padding-top: 2px; }
.tl-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--wine); margin-top: 8px; }
.tl-body h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.tl-body p { font-size: 14.5px; color: var(--ink-soft); margin: 0; max-width: 440px; }
.awards-section { max-width: 640px; margin: 70px auto 0; padding-top: 50px; border-top: 1px solid var(--hair); }
.awards-section h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 30px; text-align: center; }
.awards-list { display: flex; flex-direction: column; gap: 18px; }
.award-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px; border: 1px solid var(--hair); border-radius: 3px; }
.award-icon { font-size: 22px; }
.award-item h3 { font-family: var(--serif); font-size: 16.5px; font-weight: 600; margin: 0 0 4px; }
.award-item p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.award-book-link { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--wine); }
.award-book-link:hover { border-bottom: 1px solid var(--wine); }
.award-book-link.no-link { color: var(--ink-soft); font-style: italic; }

/* ---- FAQ page ---- */
.faq-page { padding: 90px 0 100px; }
.faq-page .wrap { max-width: 1080px; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-page h1 { font-family: var(--serif); font-size: 32px; font-weight: 600; margin: 0 0 40px; text-align: center; }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-question {
	display: flex; justify-content: space-between; align-items: center;
	padding: 20px 4px; font-family: var(--serif); font-size: 16.5px;
	color: var(--ink); cursor: pointer; list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon { color: var(--gold); font-size: 20px; transition: transform 0.25s ease; flex: none; margin-left: 12px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer p { font-size: 14.5px; color: var(--ink-soft); padding: 0 4px 20px; margin: 0; }
.qa-section { margin-top: 70px; padding-top: 50px; border-top: 1px solid var(--hair); }

/* ---- WordPress ডিফল্ট পেজিনেশন লিংক (paginate_links / the_posts_pagination) ---- */
.page-numbers { display: inline-flex; gap: 8px; list-style: none; margin: 40px 0 0; padding: 0; }
a.page-numbers, span.page-numbers {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--hair); border-radius: 2px;
  font-size: 14px; color: var(--ink-soft);
}
a.page-numbers:hover, span.page-numbers.current { border-color: var(--wine); color: var(--wine); }

/* ---- পাঠকের প্রশ্নোত্তর page ---- */
.qa-page { padding: 90px 0 100px; }
.qa-page .wrap { max-width: 700px; }
.qa-page h1 { font-family: var(--serif); font-size: 32px; font-weight: 600; margin: 0 0 10px; text-align: center; }
.qa-sub { text-align: center; color: var(--ink-soft); font-size: 15px; margin: 0 0 40px; max-width: 620px; margin-left: auto; margin-right: auto; }
.qa-form { background: var(--ivory-deep); padding: 36px; border-radius: 4px; margin-bottom: 60px; max-width: 620px; margin-left: auto; margin-right: auto; }
.qa-form h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 24px; text-align: center; }
.qa-note { font-size: 13px; color: var(--ink-soft); text-align: center; margin: 14px 0 0; }
.qa-list { display: flex; flex-direction: column; gap: 24px; }
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.qa-grid .qa-item { display: flex; flex-direction: column; height: 100%; }
.qa-item { border: 1px solid var(--hair); border-radius: 3px; padding: 22px; }
.qa-badge { font-size: 11.5px; color: var(--wine); border: 1px solid var(--wine); border-radius: 12px; padding: 2px 10px; margin-right: 8px; }
.qa-badge.answer { color: var(--gold); border-color: var(--gold); }
.qa-q { font-size: 15.5px; margin-bottom: 12px; }
.qa-a { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 10px; }
.qa-asker { font-size: 13px; color: var(--gold); }

/* ---- reviews page ---- */
.reviews-page { padding: 90px 0 100px; }
.review-notice { max-width: 620px; margin: 0 auto 30px; padding: 16px 22px; border-radius: 3px; font-size: 14.5px; text-align: center; }
.review-notice.success { background: #E9F3EA; color: #2C5F32; }
.review-notice.error { background: #F7E9E9; color: var(--wine); }
.review-form { max-width: 620px; margin: 0 auto 90px; background: var(--ivory-deep); padding: 44px; border-radius: 4px; }
.review-form h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 8px; text-align: center; }
.review-form .sub { text-align: center; font-size: 14px; color: var(--ink-soft); margin: 0 0 32px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 7px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--hair); border-radius: 2px; background: var(--ivory); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 100px; }
.star-rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; font-size: 26px; }
.star-rating-input input { display: none; }
.star-rating-input label { color: var(--hair); cursor: pointer; }
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { color: var(--gold); }
.review-form .submit-btn { width: 100%; background: var(--wine); color: var(--ivory); border: none; padding: 14px; font-size: 15.5px; border-radius: 2px; cursor: pointer; }
.review-form .submit-btn:hover { background: var(--wine-deep); }
.review-filter { display: flex; gap: 12px; align-items: center; margin-bottom: 36px; flex-wrap: wrap; }
.review-filter select { padding: 10px 14px; border: 1px solid var(--hair); border-radius: 2px; background: var(--ivory); font-family: var(--sans); }
.review-filter button { padding: 10px 18px; border: 1px solid var(--ink); background: transparent; border-radius: 2px; cursor: pointer; font-family: var(--sans); font-size: 14px; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review-card { border: 1px solid var(--hair); padding: 24px; border-radius: 3px; }
.review-card .row { display: flex; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; gap: 6px; }
.review-card .stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.review-card .who { font-size: 15px; font-weight: 500; }
.review-card .book-tag { font-size: 12.5px; color: var(--wine); margin-bottom: 10px; display: block; }
.review-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.review-card .date { font-size: 12.5px; color: var(--gold); margin-top: 12px; display: block; }
.no-reviews { text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* ---- বইয়ের পেজে আলোচনা (comments.php) ---- */
.book-discussion { margin-top: 50px; }
.discussion-title { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0 0 24px; }

/* ---- বুক ক্লাব (page-book-club.php + comments.php থ্রেড) ---- */
.bookclub-page { padding: 90px 0 100px; }
.bookclub-page .wrap { max-width: 700px; }
.bookclub-page h1 { font-family: var(--serif); font-size: 32px; font-weight: 600; margin: 0 0 10px; text-align: center; }
.bc-sub { text-align: center; color: var(--ink-soft); font-size: 15px; margin: 0 0 30px; }
.bc-select-row { text-align: center; margin-bottom: 34px; }
.bc-select-row select { padding: 12px 18px; border: 1px solid var(--hair); border-radius: 2px; font-family: var(--sans); font-size: 15px; min-width: 260px; background: var(--ivory); color: var(--ink); }
.bc-selected-book { display: flex; gap: 18px; align-items: center; padding: 20px; background: var(--ivory-deep); border-radius: 4px; margin-bottom: 34px; }
.bc-mini-cover { flex: none; width: 60px; aspect-ratio: 3/4.4; background: linear-gradient(155deg, var(--wine), var(--wine-deep)); border-radius: 2px; display: flex; align-items: flex-end; padding: 8px; overflow: hidden; }
.bc-mini-cover img { width: 100%; height: 100%; object-fit: cover; }
.bc-mini-cover span { font-family: var(--serif); color: var(--ivory); font-size: 10px; line-height: 1.3; }
.bc-selected-book h2 { font-family: var(--serif); font-size: 19px; margin: 0 0 4px; }
.bc-selected-book h2 a:hover { color: var(--wine); }
.bc-selected-book p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.bc-thread { list-style: none; margin: 0 0 44px; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.bc-comment { border-bottom: 1px solid var(--hair); padding-bottom: 20px; }
.bc-comment-head { display: flex; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.bc-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.bc-date { font-size: 12.5px; color: var(--gold); }
.bc-comment p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.bc-form { background: var(--ivory-deep); padding: 34px; border-radius: 4px; }
.bc-form h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 20px; text-align: center; }
.bc-note { font-size: 13px; color: var(--ink-soft); text-align: center; margin: 12px 0 0; }
.bc-form .field { margin-bottom: 18px; }
.bc-form .field label { display: block; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 7px; }
.bc-form .field input, .bc-form .field textarea {
	width: 100%; font-family: var(--sans); font-size: 15px; padding: 12px 14px;
	border: 1px solid var(--hair); border-radius: 2px; background: var(--ivory); color: var(--ink);
}
.bc-form .field textarea { min-height: 100px; resize: vertical; }
.bc-form .comment-form-cookies-consent { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.comment-navigation { text-align: center; margin: 20px 0; font-size: 14px; }
.comment-navigation a { color: var(--wine); }

/* ---- breadcrumbs ---- */
.breadcrumbs { padding: 18px 0; font-size: 13.5px; color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--wine); }
.breadcrumbs span { color: var(--ink); }

/* ---- share buttons ---- */
.share-buttons { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--hair); }
.share-buttons .share-label { font-size: 13.5px; color: var(--ink-soft); }
.share-buttons a, .share-buttons button {
	font-size: 13.5px; padding: 8px 16px; border: 1px solid var(--hair); border-radius: 20px;
	background: transparent; color: var(--ink); cursor: pointer; font-family: var(--sans);
}
.share-buttons a:hover, .share-buttons button:hover { border-color: var(--wine); color: var(--wine); }

/* ---- related content ---- */
.related-section { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--hair); }
.related-section h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 0 0 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { display: block; }
.related-thumb { aspect-ratio: 16/10; border-radius: 3px; overflow: hidden; background: var(--ivory-deep); margin-bottom: 10px; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card h3 { font-family: var(--serif); font-size: 15.5px; font-weight: 500; margin: 0; }
.related-card:hover h3 { color: var(--wine); }
.related-books-section { background: var(--ivory-deep); padding: 70px 0; }
.related-books-section h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 30px; }

/* ---- newsletter section ---- */
.newsletter-section { background: var(--ivory-deep); padding: 80px 0; text-align: center; }
.newsletter-section h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; margin: 0 0 10px; }
.newsletter-section .sub { font-size: 15px; color: var(--ink-soft); margin: 0 0 30px; }
.newsletter-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto; }
.newsletter-form input[type="email"] { flex: 1; min-width: 220px; padding: 13px 16px; border: 1px solid var(--hair); border-radius: 2px; font-family: var(--sans); font-size: 15px; background: var(--ivory); color: var(--ink); }
.newsletter-form button { background: var(--wine); color: var(--ivory); border: none; padding: 13px 26px; border-radius: 2px; font-size: 15px; cursor: pointer; }
.newsletter-form button:hover { background: var(--wine-deep); }
.nl-notice { max-width: 480px; margin: 0 auto 18px; padding: 12px 18px; border-radius: 3px; font-size: 14px; }
.nl-notice.success { background: #E9F3EA; color: #2C5F32; }
.nl-notice.error { background: #F7E9E9; color: var(--wine); }

/* ---- optional extra section (customizer-controlled) ---- */
.extra-section { padding: 80px 0; text-align: center; }
.extra-section h2 { font-family: var(--serif); font-weight: 600; font-size: 30px; margin: 0 0 24px; }
.extra-section .extra-content { max-width: 640px; margin: 0 auto; font-size: 15.5px; color: var(--ink-soft); }
.extra-section .extra-content p { margin: 0 0 16px; }

/* ---- generic page ---- */
/* ---- বই আর্কাইভ পেজ (archive-book.php) — ইউনিফর্ম গ্রিড, রেটিং ও পুরস্কার ব্যাজসহ ---- */
.archive-page { padding: 80px 0 100px; }
.archive-page h1 { font-family: var(--serif); font-size: 32px; font-weight: 600; margin: 0 0 40px; }
.archive-grid { grid-template-columns: repeat(4, 1fr); }

.bt-rating { display: block; font-size: 12.5px; color: var(--gold); letter-spacing: 1.5px; margin-top: 6px; }
.bt-award { display: block; font-size: 11.5px; color: var(--wine); line-height: 1.4; margin-top: 4px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.archive-card { flex: none; display: flex; flex-direction: column; height: 100%; }
.archive-card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 52px; }
.archive-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }

.generic-page { padding: 90px 0 100px; }
.generic-page .wrap { max-width: 760px; }
.generic-page h1 { font-family: var(--serif); font-size: 36px; margin: 0 0 30px; }

/* ---- basic fallback list (search / uncategorised archives) ---- */
.basic-list { padding: 80px 0 100px; }
.basic-list h1 { font-family: var(--serif); font-size: 30px; margin: 0 0 40px; }
.basic-list article { padding: 24px 0; border-bottom: 1px solid var(--hair); }
.basic-list article h2 { font-family: var(--serif); font-size: 20px; margin: 0 0 6px; }
.basic-list article h2 a:hover { color: var(--wine); }
.basic-list article .date { font-size: 13px; color: var(--gold); }

/* ---- footer ---- */
.site-footer { padding: 54px 0; border-top: 1px solid var(--hair); }
.foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--ink-soft); }
.foot-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.foot-links li { display: inline-block; }

/* ---- responsive ---- */
@media (max-width: 760px) {
  .navlinks { display: none; }
  .navlinks.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--ivory); padding: 20px 28px; border-bottom: 1px solid var(--hair); gap: 18px; }
  .menu-toggle { display: block; }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-cover { max-width: 240px; }
  .timeline::before { left: 6px; }
  .tl-item { flex-direction: column; gap: 6px; }
  .tl-year { text-align: left; }
  .review-grid { grid-template-columns: 1fr; }
  .review-form { padding: 30px 22px; }
  .related-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .qa-grid { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ivory: #171614;
    --ivory-deep: #201F1C;
    --ink: #F2EFE8;
    --ink-soft: #B7B2A6;
    --hair: rgba(242,239,232,0.14);
  }
}
