/* Astitva Book Authors — change these to match your brand */
.aba {
	--aba-accent: #e8500a;        /* Astitva orange: buttons, links, ring */
	--aba-accent-dark: #c93d00;
	--aba-accent-2: #ff9a3c;      /* lighter orange for the ring gradient */
	--aba-ink: #1a1a1a;           /* headings */
	--aba-text: #444444;          /* body text */
	--aba-muted: #8c8c8c;
	--aba-line: #eeeeee;
	--aba-tint: #f8f8f8;          /* soft background bands */
	--aba-warm: #fff4ee;          /* light orange wash */
	--aba-radius: 14px;
	--aba-font: "Josefin Sans", "Noto Sans Devanagari", "Noto Sans Gujarati", sans-serif;
	--aba-serif: var(--aba-font);
	font-family: var(--aba-font);
	color: var(--aba-text);
}
.aba *, .aba *::before, .aba *::after { box-sizing: border-box; }
.aba a { text-decoration: none; }
.aba h1, .aba h2 { color: var(--aba-ink); font-family: var(--aba-font); font-weight: 700; letter-spacing: 0; }
.aba button, .aba input { font-family: var(--aba-font); }
.aba-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Shared bits ---------------------------------------------------------- */
.aba-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--aba-accent); margin-bottom: 6px; }
.aba-link { color: var(--aba-accent); font-weight: 600; font-size: 15px; }
.aba-link:hover { color: var(--aba-accent-dark); }
.aba-btn { text-transform: uppercase; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; background: var(--aba-accent); color: #fff !important; font-weight: 600; font-size: 15px; border: 2px solid var(--aba-accent); transition: background .2s, transform .2s; }
.aba-btn:hover { background: var(--aba-accent-dark); border-color: var(--aba-accent-dark); transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(232, 80, 10, .6); }
.aba-btn-sm { padding: 8px 16px; font-size: 13px; }
.aba-btn-ghost { background: transparent; color: var(--aba-accent) !important; }
.aba-btn-ghost:hover { background: var(--aba-accent); color: #fff !important; }

.aba-photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.aba-initials { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ffe3d2, #ffc8a6); color: var(--aba-accent-dark); font-family: var(--aba-serif); font-weight: 700; font-size: 2.2em; }
.aba-ring { display: block; border-radius: 50%; padding: 6px; background: conic-gradient(from 210deg, var(--aba-accent), var(--aba-accent-2), var(--aba-accent)); flex: none; }
.aba-ring .aba-photo { border: 5px solid #fff; }

.aba-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.aba-social { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--aba-ink); border: 1px solid var(--aba-line); transition: all .2s; }
.aba-social:hover { background: var(--aba-accent); border-color: var(--aba-accent); color: #fff; transform: translateY(-2px); }

.aba-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.aba-section-head h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); }
.aba-count { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 12px; border-radius: 999px; background: var(--aba-tint); border: 1px solid var(--aba-line); font: 600 14px/1.6 system-ui, sans-serif; color: var(--aba-muted); }

/* Book cards ----------------------------------------------------------- */
.aba-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 32px 24px; }
.aba-book { display: flex; flex-direction: column; height: 100%; }
.aba-book-cover { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: var(--aba-tint); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35); transition: transform .25s, box-shadow .25s; }
.aba-book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0 !important; }
.aba-book:hover .aba-book-cover { transform: translateY(-6px); box-shadow: 0 22px 36px -16px rgba(232, 80, 10, .35); }
.aba-book-badge { position: absolute; top: 10px; left: 10px; background: var(--aba-accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.aba-book-info { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; flex: 1; }
.aba-book-cat { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--aba-muted); }
.aba-book-title { color: var(--aba-ink); font-weight: 700; font-size: 16px; line-height: 1.35; }
.aba-book-title:hover { color: var(--aba-accent); }
.aba-book-price { font-weight: 700; color: var(--aba-ink); }
.aba-book-price del { color: var(--aba-muted); font-weight: 400; margin-right: 6px; }
.aba-book-price ins { text-decoration: none; }
.aba-book-author { font-size: 14px; color: var(--aba-muted); line-height: 1.4; }
.aba-book-oos { left: auto; right: 10px; background: #1a1a1a; }
.aba-book-info .aba-book-price { margin: 2px 0 12px; }
.aba-book-action { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aba-book .aba-btn-sm,
.aba-book-action .button { display: inline-flex !important; align-items: center; justify-content: center; margin: 0 !important; padding: 8px 16px !important; border-radius: 999px !important; border: 2px solid var(--aba-accent) !important; background: transparent !important; color: var(--aba-accent) !important; font: 700 12px/1.2 var(--aba-font) !important; letter-spacing: .06em; text-transform: uppercase; transition: all .2s; box-shadow: none !important; }
.aba-book .aba-btn-sm:hover,
.aba-book-action .button:hover { background: var(--aba-accent) !important; color: #fff !important; transform: none; }
.aba-book-action .button.loading { opacity: .6; }
.aba-book-action .button.added { background: var(--aba-accent) !important; color: #fff !important; }
.aba-book-action .added_to_cart { font-size: 13px; font-weight: 700; color: var(--aba-ink); text-decoration: underline; }

/* Author portfolio page ------------------------------------------------ */
.aba-author-page { padding-bottom: 40px; }
.aba-hero { background: radial-gradient(ellipse at 12% 10%, #fff 0%, var(--aba-warm) 45%, #ffe6d6 100%); border-bottom: 1px solid var(--aba-line); padding: 56px 0 64px; }
.aba-hero-inner { display: flex; align-items: center; gap: 56px; }
.aba-ring-lg { width: 280px; height: 280px; }
.aba-hero-text { flex: 1; min-width: 0; }
.aba-crumbs { font-size: 13px; color: var(--aba-muted); margin-bottom: 22px; }
.aba-crumbs a { color: var(--aba-muted); }
.aba-crumbs a:hover { color: var(--aba-accent); }
.aba-crumbs span { margin: 0 8px; opacity: .6; }
.aba-name { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; margin: 0 0 10px; }
.aba-tagline { font-size: 20px; color: var(--aba-text); margin: 0 0 22px; }
.aba-stats { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.aba-stats li { background: #fff; border: 1px solid var(--aba-line); border-radius: 999px; padding: 8px 16px; font-size: 14px; }
.aba-stats strong { color: var(--aba-accent); font-size: 16px; }
.aba-stats span { color: var(--aba-muted); margin-right: 4px; }
.aba-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

.aba-about { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 56px; padding-top: 64px; padding-bottom: 64px; }
.aba-about h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 18px; }
.aba-bio { font-size: 17px; line-height: 1.8; position: relative; }
.aba-bio p:first-child::first-letter { float: left; font-family: var(--aba-serif); font-size: 64px; line-height: .9; padding: 6px 10px 0 0; color: var(--aba-accent); }
.aba-bio.is-clamped { max-height: 340px; overflow: hidden; }
.aba-bio.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(transparent, #fff); }
.aba-readmore { margin-top: 12px; background: none; border: 0; padding: 0; color: var(--aba-accent); font-weight: 700; font-size: 15px; cursor: pointer; }
.aba-about-side { display: flex; flex-direction: column; gap: 24px; }
.aba-quote { margin: 0; padding: 30px 28px; background: var(--aba-warm); border-radius: var(--aba-radius); border-left: 4px solid var(--aba-accent); }
.aba-quote blockquote { margin: 0 0 12px; padding: 0; border: 0; font-family: var(--aba-serif); font-size: 21px; line-height: 1.45; color: var(--aba-ink); font-style: italic; font-weight: 600; }
.aba-quote blockquote::before { content: "“"; display: block; font-size: 60px; line-height: .6; color: var(--aba-accent); margin-bottom: 8px; }
.aba-quote figcaption { font-size: 14px; color: var(--aba-muted); }
.aba-latest { display: flex; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--aba-line); border-radius: var(--aba-radius); color: inherit; transition: border-color .2s, box-shadow .2s; }
.aba-latest:hover { border-color: var(--aba-accent); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .3); }
.aba-latest img { width: 84px !important; height: auto; border-radius: 4px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35); margin: 0 !important; }
.aba-latest strong { display: block; color: var(--aba-ink); font-size: 16px; margin-bottom: 4px; line-height: 1.3; }

.aba-books-section { background: var(--aba-tint); padding: 64px 0 72px; border-top: 1px solid var(--aba-line); border-bottom: 1px solid var(--aba-line); }
.aba-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aba-chips button { border: 1px solid var(--aba-line); background: #fff; color: var(--aba-text); border-radius: 999px; padding: 7px 16px; font-size: 14px; cursor: pointer; transition: all .2s; }
.aba-chips button:hover { border-color: var(--aba-accent); color: var(--aba-accent); }
.aba-chips button.is-active { background: var(--aba-accent); border-color: var(--aba-accent); color: #fff; }
.aba-book-wrap[hidden] { display: none; }

.aba-cta { text-align: center; padding-top: 56px; padding-bottom: 16px; }
.aba-cta p { font-family: var(--aba-serif); font-size: 24px; color: var(--aba-ink); margin: 0 0 18px; }

/* Book page: byline, author card, more-from ---------------------------- */
.aba-byline { margin: -4px 0 14px; font-size: 16px; color: var(--aba-muted); }
.aba-byline a { color: var(--aba-accent); font-weight: 600; text-decoration: none; }
.aba-cards { clear: both; margin: 48px 0; display: grid; gap: 16px; }
.aba-card { display: flex; gap: 28px; align-items: center; padding: 28px; border-radius: var(--aba-radius); background: var(--aba-warm); border: 1px solid var(--aba-line); }
.aba-card-photo { width: 132px; height: 132px; flex: none; border-radius: 50%; padding: 4px; background: conic-gradient(from 210deg, var(--aba-accent), var(--aba-accent-2), var(--aba-accent)); }
.aba-card-photo .aba-photo { border: 4px solid #fff; }
.aba-card-name { display: block; font-family: var(--aba-serif); font-size: 24px; font-weight: 700; color: var(--aba-ink); margin-bottom: 6px; }
.aba-card-name:hover { color: var(--aba-accent); }
.aba-card-bio { margin: 0 0 14px; line-height: 1.65; }
.aba-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.aba-card .aba-social { width: 36px; height: 36px; }
.aba-more { clear: both; margin: 48px 0; }
.aba-books-row { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* Authors directory ([book_authors]) ----------------------------------- */
.aba-directory { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 24px; }
.aba-dir-item { display: flex; flex-direction: column; align-items: center; text-align: center; color: inherit; }
.aba-dir-item .aba-ring { width: 170px; height: 170px; margin-bottom: 14px; transition: transform .25s; }
.aba-dir-item:hover .aba-ring { transform: scale(1.04); }
.aba-dir-item strong { color: var(--aba-ink); font-size: 17px; font-family: var(--aba-serif); }
.aba-dir-item em { font-size: 13px; color: var(--aba-text); margin-top: 2px; }
.aba-dir-count { font-size: 12px; color: var(--aba-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .08em; }

/* Mobile ---------------------------------------------------------------- */
@media (max-width: 900px) {
	.aba-hero-inner { flex-direction: column; text-align: center; gap: 28px; }
	.aba-ring-lg { width: 200px; height: 200px; }
	.aba-stats, .aba-hero-actions { justify-content: center; }
	.aba-about { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; padding-bottom: 44px; }
}
@media (max-width: 600px) {
	.aba-hero { padding: 36px 0 44px; }
	.aba-books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
	.aba-card { flex-direction: column; text-align: center; padding: 24px 20px; }
	.aba-card-foot { justify-content: center; flex-direction: column; }
	.aba-section-head { flex-direction: column; align-items: flex-start; }
}
