/* Apar Prakashan storefront — built on Bootstrap 5 */
:root {
    --ink: #1b2a41;
    --ink-soft: #2c3e5a;
    --cloth: #2f5d50;
    --marigold: #e0a526;
    --marigold-deep: #b9821a;
    --paper: #ffffff;
    --sage: #eef2ef;
    --line: #dfe4e1;
    --muted: #5b6472;
    --danger: #b3412f;
    --serif: "Literata", Georgia, serif;
    --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius: 10px;

    --bs-body-font-family: var(--sans);
    --bs-body-color: var(--ink);
    --bs-link-color-rgb: 47, 93, 80;
    --bs-link-hover-color-rgb: 27, 42, 65;
    --bs-border-color: var(--line);
    --bs-primary-rgb: 27, 42, 65;
}

body { background: var(--paper); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .serif { font-family: var(--serif); color: var(--ink); letter-spacing: -0.01em; }
h1 { font-weight: 700; }
h2, h3 { font-weight: 600; }
a { text-decoration: none; }
.text-muted { color: var(--muted) !important; }
::selection { background: var(--marigold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--marigold) !important; outline-offset: 2px; }

/* Buttons */
.btn { border-radius: 8px; font-weight: 600; padding: .6rem 1.15rem; }
.btn-sm { padding: .35rem .75rem; }
.btn-ink { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-ink:hover, .btn-ink:focus { background: var(--ink-soft); color: #fff; }
.btn-marigold { background: var(--marigold); color: var(--ink); border: 1px solid var(--marigold); }
.btn-marigold:hover, .btn-marigold:focus { background: var(--marigold-deep); border-color: var(--marigold-deep); color: #fff; }
.btn-outline-ink { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }
.form-control, .form-select { border-radius: 8px; padding: .6rem .85rem; border-color: #cfd6d2; }
.form-control:focus, .form-select:focus { border-color: var(--cloth); box-shadow: 0 0 0 .2rem rgba(47, 93, 80, .15); }
.form-label { font-weight: 600; font-size: .925rem; margin-bottom: .35rem; }
.form-check-input:checked { background-color: var(--cloth); border-color: var(--cloth); }

/* Top bar + header */
.announce { background: var(--cloth); color: #e8f0ec; font-size: .875rem; padding: .45rem 0; }
.announce a { color: #fff; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.55rem; color: var(--ink); display: flex; align-items: center; gap: .5rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 6px; background: var(--ink); position: relative; flex-shrink: 0; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; bottom: 7px; width: 6px; border-radius: 1px; }
.brand-mark::before { left: 9px; height: 18px; background: var(--marigold); }
.brand-mark::after { left: 18px; height: 14px; background: #9cc5b5; transform: rotate(12deg); transform-origin: bottom left; }
.site-header .nav-link { color: var(--ink); font-weight: 500; padding: .5rem .85rem !important; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--cloth); }
.header-search { max-width: 440px; }
.header-search .form-control { border-radius: 8px 0 0 8px; background: var(--sage); border-color: var(--sage); }
.header-search .btn { border-radius: 0 8px 8px 0; }
.icon-btn { position: relative; color: var(--ink); font-size: 1.3rem; padding: .35rem .5rem; display: inline-flex; align-items: center; }
.icon-btn .count { position: absolute; top: -2px; right: -4px; background: var(--marigold); color: var(--ink); font-size: .7rem; font-weight: 700; border-radius: 99px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; }
.dropdown-menu { border-color: var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(27, 42, 65, .12); }

/* Hero: a shelf of real covers */
.hero { background: var(--ink); color: #e9edf3; overflow: hidden; position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; max-width: 14ch; }
.hero .lead { color: #c4cddb; max-width: 46ch; font-size: 1.125rem; }
.hero-search .form-control { padding: .85rem 1rem; border: 0; border-radius: 8px 0 0 8px; }
.hero-search .btn { border-radius: 0 8px 8px 0; padding: 0 1.4rem; }
.shelf { display: flex; align-items: flex-end; justify-content: center; gap: 1.6%; padding: 0 2%; position: relative; min-height: 330px; container-type: inline-size; }
.shelf::after { content: ""; position: absolute; left: -40px; right: -40px; bottom: -14px; height: 14px; background: #8a6a3d; box-shadow: 0 10px 0 #6b4f2a, 0 24px 40px rgba(0,0,0,.35); border-radius: 2px; }
.shelf a { flex: 0 0 auto; width: 19%; font-size: 1.85cqw; transition: transform .25s ease; transform-origin: bottom center; }
.shelf a:nth-child(1) { width: 20%; }
.shelf a:nth-child(2) { width: 17.5%; font-size: 1.7cqw; }
.shelf a:nth-child(3) { width: 21.5%; font-size: 2cqw; }
.shelf a:nth-child(4) { width: 18.5%; }
.shelf a:nth-child(5) { width: 16.5%; font-size: 1.6cqw; }
.shelf a:hover, .shelf a:focus-visible { transform: translateY(-14px); }
.shelf a:nth-child(2) { transform: rotate(-3deg); }
.shelf a:nth-child(2):hover { transform: rotate(-3deg) translateY(-14px); }
.shelf a:nth-child(4) { transform: rotate(4deg); margin-left: 6px; }
.shelf a:nth-child(4):hover { transform: rotate(4deg) translateY(-14px); }
.hero-facts { color: #c4cddb; font-size: .95rem; }
.hero-facts strong { color: var(--marigold); font-family: var(--serif); font-size: 1.3rem; display: block; }

/* Generated book cover */
.cover { position: relative; aspect-ratio: 2 / 3; border-radius: 3px 8px 8px 3px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 12% 10% 10% 16%; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 10px 22px rgba(27, 42, 65, .18); }
.cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 9%; background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.12) 70%, rgba(0,0,0,.08)); }
.cover::after { content: ""; position: absolute; left: 16%; right: 10%; top: 50%; height: 2px; background: currentColor; opacity: .55; }
.cover-title { font-family: var(--serif); font-weight: 700; line-height: 1.12; font-size: 1.05em; position: relative; z-index: 1; overflow-wrap: break-word; }
.cover-author { font-size: .62em; font-weight: 600; opacity: .85; position: relative; z-index: 1; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.has-img { padding: 0; }
.cover.has-img::after { display: none; }

/* Book cards */
.book-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.book-card .cover-wrap { display: block; font-size: clamp(14px, 1.6vw, 19px); margin-bottom: .85rem; transition: transform .2s ease; }
.book-card:hover .cover-wrap { transform: translateY(-4px); }
.book-card .title { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-card .title:hover { color: var(--cloth); }
.book-card .author { color: var(--muted); font-size: .875rem; }
.price { font-weight: 700; color: var(--ink); }
.price del { color: var(--muted); font-weight: 400; font-size: .85em; margin-left: .35rem; }
.badge-sale { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--marigold); color: var(--ink); font-weight: 700; font-size: .75rem; border-radius: 6px; padding: .2rem .45rem; }
.badge-out { position: absolute; top: 8px; right: 8px; z-index: 2; background: #fff; color: var(--danger); font-weight: 700; font-size: .75rem; border-radius: 6px; padding: .2rem .45rem; }
.stars { color: var(--marigold); font-size: .85rem; letter-spacing: 1px; }
.stars .bi-star { color: #c8cfcb; }
.book-card .actions { margin-top: auto; padding-top: .6rem; display: flex; gap: .4rem; }
.book-card .actions .btn { flex: 1; font-size: .875rem; padding: .45rem .6rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-tint { background: var(--sage); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0; }
.section-head p { margin: .3rem 0 0; color: var(--muted); }
.link-more { font-weight: 600; color: var(--cloth); white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

.cat-tile { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); height: 100%; transition: border-color .2s, background .2s; }
.cat-tile:hover { border-color: var(--cloth); background: #f9fbfa; }
.cat-tile i { font-size: 1.5rem; color: var(--cloth); width: 46px; height: 46px; display: grid; place-items: center; background: var(--sage); border-radius: 8px; flex-shrink: 0; }
.cat-tile strong { display: block; font-weight: 600; }
.cat-tile small { color: var(--muted); }

.author-chip { text-align: center; color: var(--ink); display: block; }
.author-chip .avatar { width: 112px; height: 112px; margin: 0 auto .8rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 2rem; font-weight: 700; color: #fff; background: var(--cloth); overflow: hidden; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.author-chip .avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-chip:hover strong { color: var(--cloth); }

.deal-band { background: var(--marigold); color: var(--ink); border-radius: 14px; padding: 2.5rem; }
.deal-band h2 { color: var(--ink); }
.promise { display: flex; gap: .85rem; align-items: flex-start; }
.promise i { font-size: 1.6rem; color: var(--cloth); }
.promise strong { display: block; }
.promise span { color: var(--muted); font-size: .925rem; }

.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; height: 100%; }
.quote-card blockquote { font-family: var(--serif); font-size: 1.08rem; line-height: 1.55; margin: .6rem 0 1rem; }

/* Listing */
.page-banner { background: var(--sage); padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.page-banner h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0; }
.breadcrumb { font-size: .875rem; margin-bottom: .5rem; }
.breadcrumb a { color: var(--cloth); }
.filter-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: #fff; }
.filter-box h6 { font-weight: 700; font-size: .95rem; margin: 1.2rem 0 .6rem; }
.filter-box h6:first-child { margin-top: 0; }
.filter-list { max-height: 220px; overflow: auto; }
.pagination { --bs-pagination-color: var(--ink); --bs-pagination-active-bg: var(--ink); --bs-pagination-active-border-color: var(--ink); --bs-pagination-border-radius: 8px; }

/* Book detail */
.detail-cover { font-size: clamp(20px, 2.6vw, 30px); max-width: 360px; }
.detail-meta dt { font-weight: 500; color: var(--muted); }
.detail-meta dd { font-weight: 600; }
.qty { width: 136px; flex-wrap: nowrap; }
.qty .btn { padding: .45rem .7rem; }
.qty .form-control { text-align: center; }
.rating-bar { height: 8px; border-radius: 99px; background: var(--sage); overflow: hidden; }
.rating-bar span { display: block; height: 100%; background: var(--marigold); }
.prose { max-width: 70ch; }
.prose p { margin-bottom: 1rem; }
.prose h4 { font-size: 1.2rem; margin-top: 1.8rem; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.star-input input { display: none; }
.star-input label { font-size: 1.6rem; color: #c8cfcb; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--marigold); }

/* Cart + checkout */
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1.5rem; }
.summary { position: sticky; top: 96px; }
.summary .row-line { display: flex; justify-content: space-between; padding: .4rem 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .8rem; font-weight: 700; font-size: 1.15rem; }
.cart-thumb { width: 64px; font-size: 9px; flex-shrink: 0; }
.pay-option { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; gap: .8rem; align-items: center; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--cloth); background: #f6faf8; }
.steps { display: flex; gap: 1.5rem; font-size: .925rem; color: var(--muted); flex-wrap: wrap; }
.steps .on { color: var(--ink); font-weight: 700; }

/* Account */
.account-nav .list-group-item { border: 0; border-radius: 8px !important; padding: .65rem .9rem; color: var(--ink); font-weight: 500; }
.account-nav .list-group-item i { width: 1.4rem; display: inline-block; color: var(--cloth); }
.account-nav .list-group-item.active { background: var(--sage); color: var(--ink); font-weight: 700; }
.stat-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.stat-tile strong { font-family: var(--serif); font-size: 1.6rem; display: block; }
.stat-tile span { color: var(--muted); font-size: .9rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.6rem; border-left: 2px solid var(--line); margin-left: .4rem; }
.timeline li:last-child { border-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--cloth); }
.msg { max-width: 82%; border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1rem; }
.msg.me { background: var(--sage); margin-left: auto; }
.msg.staff { background: #fff; border: 1px solid var(--line); }
.msg .meta { font-size: .8rem; color: var(--muted); margin-bottom: .3rem; }
.table > :not(caption) > * > * { padding: .8rem .75rem; }
.table thead th { font-size: .85rem; color: var(--muted); font-weight: 600; background: #fafbfa; }

/* Auth */
.auth-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 3rem 0; background: var(--sage); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 14px; padding: 2.25rem; border: 1px solid var(--line); }

/* Footer */
.site-footer { background: var(--ink); color: #b9c3d2; padding: 4rem 0 1.5rem; font-size: .95rem; }
.site-footer h5 { color: #fff; font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.site-footer a { color: #b9c3d2; }
.site-footer a:hover { color: var(--marigold); }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .875rem; }
.social a { width: 38px; height: 38px; border-radius: 8px; display: inline-grid; place-items: center; background: rgba(255,255,255,.08); margin-right: .35rem; }

.toast-container { z-index: 2000; }
.empty { text-align: center; padding: 3.5rem 1rem; }
.empty i { font-size: 3rem; color: var(--cloth); }

@media (max-width: 991.98px) {
    .shelf { min-height: 0; margin-top: 1.5rem; }
    .summary { position: static; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
    .site-header, .site-footer, .announce, .no-print { display: none !important; }
}

/* Logo */
.brand-logo { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; object-fit: contain; }
.site-footer .brand-logo { width: 52px; height: 52px; }
.brand-logo.brand-logo-wide { width: auto; max-width: 220px; height: 48px; border-radius: 0; }
.site-footer .brand-logo.brand-logo-wide { width: auto; height: 56px; }
.al-logo-wide img { width: auto; height: auto; max-width: 260px; max-height: 120px; border-radius: 0; background: none; box-shadow: none; }

/* ===== Publication home page ===== */
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--marigold); margin-bottom: .9rem; }
.eyebrow-dark { color: var(--cloth); }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.02rem; }
.btn-ghost-light { border: 1px solid rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.04); }
.btn-ghost-light:hover, .btn-ghost-light:focus { background: #fff; color: var(--ink); border-color: #fff; }

/* Hero slider */
.hero-slider { position: relative; background: var(--ink); color: #fff; }
.hero-slider .carousel-item { height: clamp(460px, 78vh, 680px); background: linear-gradient(135deg, var(--ink), var(--cloth)); overflow: hidden; }
.hero-slider-empty { height: clamp(420px, 60vh, 560px); display: flex; align-items: center; background: linear-gradient(135deg, var(--ink), var(--cloth)); }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.carousel-item.active .slide-bg { transform: scale(1); }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,24,36,.88) 0%, rgba(17,24,36,.62) 45%, rgba(17,24,36,.15) 100%); }
.slide-content { position: relative; height: 100%; display: flex; align-items: center; z-index: 2; }
.slide-text { max-width: 640px; padding: 2rem 0 3.5rem; }
.slide-text h1, .slide-text .h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.08; margin-bottom: 1rem; }
.slide-text p { color: #d6dde8; font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 52ch; margin: 0; }
.carousel-item.active .slide-text > * { animation: slideUp .8s ease both; }
.carousel-item.active .slide-text > *:nth-child(2) { animation-delay: .1s; }
.carousel-item.active .slide-text > *:nth-child(3) { animation-delay: .2s; }
.carousel-item.active .slide-text > *:nth-child(4) { animation-delay: .3s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-slider .carousel-indicators { margin-bottom: 1.6rem; z-index: 3; }
.hero-slider .carousel-indicators [data-bs-target] { width: 34px; height: 4px; border-radius: 2px; border: 0; background: #fff; opacity: .4; margin: 0 4px; }
.hero-slider .carousel-indicators .active { opacity: 1; background: var(--marigold); width: 54px; }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 7%; opacity: 1; z-index: 3; }
.slider-arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); font-size: 1.2rem; transition: background .2s; }
.carousel-control-prev:hover .slider-arrow, .carousel-control-next:hover .slider-arrow { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }

/* About strip */
.intro-figure { position: relative; padding: 0 0 2rem 0; }
.intro-figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 16px; background: var(--sage); }
.intro-badge { position: absolute; right: -10px; bottom: 0; background: var(--marigold); color: var(--ink); border-radius: 14px; padding: 1.1rem 1.4rem; box-shadow: 0 16px 34px rgba(27,42,65,.22); }
.intro-badge strong { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.intro-badge span { font-weight: 600; font-size: .9rem; }
.intro-title { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; margin-bottom: 1rem; }
.intro-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; margin: 1.8rem 0 2rem; padding: 1.3rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro-stats strong { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--cloth); line-height: 1.1; }
.intro-stats span { color: var(--muted); font-size: .9rem; }

/* Services — image card with an inset white caption box */
.services { background: #23272f; color: #e9edf3; }
.services h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: .8rem; }
.services-sub { color: #dfe4ec; font-size: 1.1rem; max-width: 60ch; margin: 0 auto; }
.service-card { height: 100%; display: flex; flex-direction: column; }
.service-img { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9.5; background: #2f343e; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-img img { transform: scale(1.05); }
.service-body { background: #fff; color: var(--ink); text-align: center; margin: -42px 14px 0; padding: 1.6rem 1.4rem 1.8rem; position: relative; flex: 1; box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.service-body h3 { font-family: var(--sans); font-weight: 700; font-size: 1.3rem; margin-bottom: .6rem; }
.service-body p { margin: 0; font-size: 1.02rem; line-height: 1.65; color: #2b2f36; }

/* Blog */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: 0 16px 36px rgba(27,42,65,.12); transform: translateY(-3px); }
.post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sage); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-thumb span { display: grid; place-items: center; height: 100%; font-size: 2.4rem; color: var(--cloth); }
.post-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.2rem; line-height: 1.35; margin: .5rem 0 .6rem; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--cloth); }
.post-body p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-size: .85rem; color: var(--muted); }
.post-cat { display: inline-block; background: var(--sage); color: var(--cloth); font-weight: 700; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 99px; }
.post-cat:hover { background: var(--cloth); color: #fff; }
.post-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.post-content { max-width: none; font-size: 1.06rem; }
.post-content img { max-width: 100%; height: auto; border-radius: 10px; }
.chip { display: inline-block; padding: .4rem .95rem; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: .9rem; }
.chip:hover { border-color: var(--cloth); color: var(--cloth); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.recent-post { display: flex; gap: .8rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); color: var(--ink); }
.recent-post:first-of-type { border-top: 0; padding-top: 0; }
.recent-post .thumb { width: 72px; height: 54px; border-radius: 8px; overflow: hidden; background: var(--sage); flex-shrink: 0; }
.recent-post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-post strong { display: block; font-size: .92rem; line-height: 1.3; font-weight: 600; }
.recent-post small { color: var(--muted); }
.recent-post:hover strong { color: var(--cloth); }

@media (max-width: 767.98px) {
    .slide-shade { background: linear-gradient(180deg, rgba(17,24,36,.55), rgba(17,24,36,.88)); }
    .hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { display: none; }
    .intro-badge { right: 10px; }
    .intro-stats { gap: 1.4rem; }
}

/* Author dashboard */
.author-band { background: var(--ink); padding: 1.6rem 0; }
.author-band-avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--cloth); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; overflow: hidden; border: 3px solid rgba(255,255,255,.2); }
.author-band-avatar img { width: 100%; height: 100%; object-fit: cover; }
.stat-accent { background: #fdf6e6; border-color: #f1d79a; }

/* ===== Publisher layout (v3) ===== */
.text-marigold { color: var(--marigold) !important; }
.display-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; margin-bottom: .8rem; }
.topbar { background: var(--ink); color: #c4cddb; font-size: .85rem; padding: .45rem 0; }
.topbar a { color: #dfe5ee; }
.topbar a:hover { color: var(--marigold); }
.topbar-note { color: var(--marigold); font-weight: 600; }
.topbar-social { gap: .8rem; }
.site-header .navbar-nav .nav-link { font-size: .97rem; padding: .5rem .7rem !important; }
.site-header .nav-cta { background: var(--sage); border-radius: 8px; color: var(--cloth) !important; font-weight: 600; margin-left: .3rem; }
.site-header .nav-cta:hover, .site-header .nav-cta.active { background: var(--cloth); color: #fff !important; }
.search-drop { border-top: 1px solid var(--line); background: #fff; }
.search-drop .header-search { max-width: 640px; }
.mega-title { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .25rem 1rem .5rem; }
.mega-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1200px) {
    .site-header .nav-item.mega { position: static; }
    .mega-menu { left: 50% !important; transform: translateX(-50%); width: min(900px, 94vw); padding: 1.2rem; margin-top: .4rem !important; }
}
@media (max-width: 1199.98px) {
    .mega-cats { grid-template-columns: 1fr 1fr; }
    .site-header .nav-cta { display: inline-block; margin: .4rem 0; }
}

/* Banners */
.pub-banner, .page-banner { background: linear-gradient(120deg, var(--ink) 0%, #24405c 60%, var(--cloth) 130%); color: #dfe5ee; padding: 3.2rem 0 3rem; border: 0; }
.pub-banner h1, .page-banner h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 0; }
.pub-banner .lead { color: #c9d2df; margin-top: .6rem; max-width: 62ch; font-size: 1.1rem; }
.pub-banner .breadcrumb a, .page-banner .breadcrumb a { color: var(--marigold); }
.pub-banner .breadcrumb-item.active, .page-banner .breadcrumb-item.active, .pub-banner .breadcrumb-item + .breadcrumb-item::before, .page-banner .breadcrumb-item + .breadcrumb-item::before { color: #aab6c6; }
.page-banner .text-muted { color: #c4cddb !important; }
.page-banner .post-meta { color: #c4cddb; }

/* Quick band + counters */
.quick-band { padding: 4rem 0; border-bottom: 1px solid var(--line); }
.quick-title { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; margin-bottom: 1rem; }
.counters { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; }
.counters strong { display: block; font-family: var(--serif); font-size: 2.1rem; color: var(--cloth); line-height: 1.1; }
.counters span { color: var(--muted); font-size: .9rem; }
.form-card { background: var(--ink); color: #dfe5ee; border-radius: 16px; padding: 1.8rem; box-shadow: 0 20px 40px rgba(27,42,65,.18); }
.form-card h3 { color: #fff; font-size: 1.35rem; margin-bottom: .3rem; }
.form-card > p { color: #b9c3d2; font-size: .95rem; }
.form-card .form-control, .form-card .form-select { border: 0; }
.form-card .form-note { color: #94a1b4; }
.form-card .form-label { color: #dfe5ee; }
.form-card-light { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(27,42,65,.08); }
.form-card-light .form-control, .form-card-light .form-select { border: 1px solid #cfd6d2; }
.form-card-light .form-note, .form-card-light .form-label { color: var(--muted); }

/* Steps */
.step-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.8rem 1.5rem; height: 100%; position: relative; }
.step-card i { font-size: 2rem; color: var(--cloth); display: block; margin-bottom: .8rem; }
.step-card h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 700; }
.step-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.step-num { position: absolute; top: 1rem; right: 1.2rem; font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--sage); line-height: 1; }

/* Packages */
.pkg-teaser { background: linear-gradient(120deg, var(--ink), #24405c); color: #c9d2df; border-radius: 20px; padding: clamp(1.8rem, 4vw, 3.2rem); }
.pkg-teaser h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
.check-list li::before { content: "\F26B"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--cloth); font-size: 1.1rem; }
.pkg-teaser .check-list li { color: #e5eaf1; }
.pkg-teaser .check-list li::before { color: var(--marigold); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1.5rem; }
.pkg-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem 1.5rem; display: flex; flex-direction: column; width: 100%; position: relative; }
.pkg-card.popular { border: 2px solid var(--marigold); box-shadow: 0 20px 44px rgba(224,165,38,.18); }
.pkg-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--marigold); color: var(--ink); font-weight: 700; font-size: .75rem; padding: .25rem .8rem; border-radius: 99px; white-space: nowrap; }
.pkg-card h3 { font-size: 1.4rem; margin-bottom: .2rem; }
.pkg-sub { color: var(--muted); font-size: .92rem; }
.pkg-price { margin: .4rem 0 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.pkg-price strong { font-family: var(--serif); font-size: 2.1rem; color: var(--ink); }
.pkg-price del { color: var(--muted); margin-left: .5rem; }
.pkg-card .check-list { margin-bottom: 1.5rem; font-size: .95rem; }

/* Why / feature cards */
.why-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.8rem 1.5rem; text-align: center; height: 100%; }
.why-card i { font-size: 1.6rem; color: var(--cloth); width: 58px; height: 58px; border-radius: 14px; background: var(--sage); display: inline-grid; place-items: center; margin-bottom: 1rem; }
.why-card h3 { font-family: var(--sans); font-weight: 700; font-size: 1.12rem; }
.why-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Testimonials, partners, FAQ */
.quote-mark { font-size: 2.4rem; color: var(--marigold); line-height: 1; }
.t-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--cloth); color: #fff; display: inline-grid; place-items: center; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }
.partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 2.5rem; }
.partners img { height: 44px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; }
.partners a:hover img { filter: none; opacity: 1; }
.partners b { color: var(--muted); font-size: 1.1rem; }
.faq .accordion-item { border: 1px solid var(--line); border-radius: 12px !important; margin-bottom: .7rem; overflow: hidden; }
.faq .accordion-button { font-weight: 600; color: var(--ink); background: #fff; box-shadow: none; }
.faq .accordion-button:not(.collapsed) { background: var(--sage); color: var(--ink); }
.faq .accordion-body { color: var(--muted); }

/* Final CTA */
.cta-final { background: linear-gradient(120deg, var(--ink), #1f3a52 70%, var(--cloth)); }
.cta-text { color: #c9d2df; font-size: 1.08rem; }
.cta-contacts a { color: #fff; font-weight: 600; display: inline-flex; gap: .5rem; align-items: center; }
.cta-contacts i { color: var(--marigold); font-size: 1.2rem; }

/* Royalty calculator */
.calc-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; box-shadow: 0 16px 40px rgba(27,42,65,.08); }
.calc-card h3 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.calc-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1.4rem 0 1rem; }
.calc-results > div { background: var(--sage); border-radius: 12px; padding: .9rem; text-align: center; }
.calc-results span { display: block; color: var(--muted); font-size: .85rem; }
.calc-results strong { font-family: var(--serif); font-size: 1.35rem; }
.calc-results .hl { background: var(--ink); }
.calc-results .hl span { color: #b9c3d2; }
.calc-results .hl strong { color: var(--marigold); }

/* Submission */
.genre-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.genre-chips span { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: .35rem .9rem; font-size: .9rem; }
.note-box { display: flex; gap: .9rem; background: #fdf6e6; border: 1px solid #f1d79a; border-radius: 12px; padding: 1rem 1.2rem; }
.note-box i { font-size: 1.4rem; color: var(--marigold-deep); }
.contact-list > * { display: flex; gap: .9rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--line); color: var(--ink); }
.contact-list i { width: 44px; height: 44px; border-radius: 10px; background: var(--sage); color: var(--cloth); display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.contact-list small { display: block; color: var(--muted); }

/* Gallery */
.gallery-grid { columns: 3 260px; column-gap: 1rem; }
.gallery-item { display: block; position: relative; margin-bottom: 1rem; border-radius: 12px; overflow: hidden; break-inside: avoid; }
.gallery-item img { width: 100%; display: block; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cap { position: absolute; inset: auto 0 0 0; padding: 2rem .9rem .8rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); font-weight: 600; font-size: .92rem; }
.gallery-cap small { display: block; font-weight: 400; opacity: .8; }

/* Footer + WhatsApp */
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.2rem; padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-cta form { min-width: min(100%, 420px); }
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: .4rem 1rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 1040; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.wa-float:hover { color: #fff; transform: scale(1.06); }

@media (max-width: 575.98px) {
    .check-grid { grid-template-columns: 1fr; }
    .calc-results { grid-template-columns: 1fr; }
    .counters { gap: 1.2rem 1.8rem; }
}
@media (max-width: 767.98px) {
    .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; }
    .row.g-xl-5 { --bs-gutter-x: 1.5rem; }
}
@media (max-width: 420px) {
    .site-header .brand { font-size: 1.2rem; gap: .4rem; }
    .site-header .brand-logo { width: 36px; height: 36px; }
    .site-header .brand-logo.brand-logo-wide { width: auto; max-width: 170px; height: 38px; }
    .site-header .icon-btn { padding: .3rem .35rem; font-size: 1.2rem; }
    .site-header .navbar-toggler { padding: .25rem .4rem; }
}

/* Royalty calculator v2 */
.text-cloth { color: var(--cloth) !important; }
.calc-step { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.calc-step span { width: 32px; height: 32px; border-radius: 50%; background: var(--marigold); color: var(--ink); font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.calc-step h2 { font-size: 1.3rem; margin: 0; }
.opt-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt { cursor: pointer; margin: 0; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-block; border: 1px solid #cfd6d2; border-radius: 8px; padding: .55rem 1rem; font-weight: 500; transition: .15s; }
.opt input:checked + span { border-color: var(--cloth); background: var(--sage); color: var(--cloth); font-weight: 700; box-shadow: inset 0 0 0 1px var(--cloth); }
.opt input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }
fieldset legend.form-label { font-size: .925rem; float: none; width: auto; }
.calc-out { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem 1.5rem; }
.calc-out h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.calc-out h3 small, .out-row small { font-family: var(--sans); font-size: .78rem; color: var(--muted); font-weight: 400; }
.out-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.out-row strong { font-family: var(--serif); font-size: 1.25rem; white-space: nowrap; }
.calc-out-dark { background: var(--ink); border-color: var(--ink); }
.calc-out-dark h3 { color: #fff; }
.earn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.earn-grid > div { background: rgba(255,255,255,.07); border-radius: 12px; padding: .9rem; }
.earn-grid span { display: block; color: #b9c3d2; font-size: .82rem; }
.earn-grid strong { font-family: var(--serif); font-size: 1.3rem; color: var(--marigold); }
.notes-box { background: #fdf6e6; border: 1px solid #f1d79a; border-radius: 14px; padding: 1.3rem 1.5rem; }
.notes-box h3 { font-size: 1.1rem; }
.notes-box li { margin-bottom: .35rem; }
@media (max-width: 575.98px) { .earn-grid { grid-template-columns: 1fr; } }

/* Public author profile */
.ap-hero { position: relative; background: var(--ink); color: #fff; padding: 1.2rem 0 2.2rem; overflow: hidden; }
.ap-cover { position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(224,165,38,.35), transparent 45%), linear-gradient(120deg, var(--ink) 0%, #24405c 55%, var(--cloth) 120%); }
.ap-cover.has-img { background: linear-gradient(180deg, rgba(17,24,36,.35) 0%, rgba(17,24,36,.85) 100%), var(--cover) center / cover no-repeat; }
.ap-crumbs .breadcrumb a { color: var(--marigold); }
.ap-crumbs .breadcrumb-item.active, .ap-crumbs .breadcrumb-item + .breadcrumb-item::before { color: #c9d2df; }
.ap-head { display: flex; align-items: flex-end; gap: 1.6rem; flex-wrap: wrap; padding-top: clamp(4rem, 11vw, 8rem); }
.ap-avatar { width: 150px; height: 150px; border-radius: 50%; border: 5px solid #fff; background: var(--cloth); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 3rem; font-weight: 700; overflow: hidden; flex-shrink: 0; box-shadow: 0 14px 34px rgba(0,0,0,.3); }
.ap-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ap-id { flex: 1; min-width: 240px; }
.ap-id h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.ap-headline { color: #dfe5ee; font-size: 1.15rem; margin: .35rem 0 .6rem; }
.ap-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: #c9d2df; font-size: .92rem; }
.ap-meta i { color: var(--marigold); margin-right: .35rem; }
.ap-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ap-stats { background: #fff; border-bottom: 1px solid var(--line); }
.ap-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.ap-stat-row > div { padding: 1.3rem 1rem; text-align: center; border-right: 1px solid var(--line); }
.ap-stat-row > div:last-child { border-right: 0; }
.ap-stat-row strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--ink); line-height: 1.1; }
.ap-stat-row strong i { color: var(--marigold); font-size: 1.1rem; margin-left: .3rem; vertical-align: middle; }
.ap-stat-row span { color: var(--muted); font-size: .88rem; }
.ap-bio { max-width: none; font-size: 1.05rem; color: #333c49; }
.ap-quote { position: relative; margin: 2.2rem 0 0; padding: 1.6rem 1.8rem 1.4rem 3.6rem; background: #fdf6e6; border-left: 4px solid var(--marigold); border-radius: 0 14px 14px 0; }
.ap-quote i { position: absolute; left: 1rem; top: .7rem; font-size: 2.4rem; color: var(--marigold); }
.ap-quote p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; margin: 0 0 .5rem; color: var(--ink); }
.ap-quote cite { font-style: normal; color: var(--muted); font-size: .92rem; }
.ap-achievements { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.ap-achievements li { display: flex; gap: .8rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.ap-achievements i { color: var(--marigold-deep); font-size: 1.25rem; line-height: 1.2; }
.ap-video { border-radius: 14px; overflow: hidden; background: #000; }
.ap-side dt { font-weight: 500; color: var(--muted); font-size: .85rem; }
.ap-side dd { font-weight: 600; margin-bottom: .8rem; }
.ap-social { display: flex; flex-wrap: wrap; gap: .5rem; }
.ap-social a { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--sage); color: var(--cloth); font-size: 1.15rem; transition: .15s; }
.ap-social a:hover { background: var(--cloth); color: #fff; }
@media (max-width: 767.98px) {
    .ap-head { align-items: flex-start; }
    .ap-avatar { width: 112px; height: 112px; font-size: 2.2rem; }
    .ap-stat-row { grid-template-columns: repeat(2, 1fr); }
    .ap-stat-row > div:nth-child(2) { border-right: 0; }
    .ap-stat-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Author login */
.al-body { min-height: 100vh; background: linear-gradient(110deg, #ffffff 0%, #eef1fb 45%, #d3dcf7 100%); }
.al-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 16px; }
.al-card { width: 100%; max-width: 1000px; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 70px rgba(27,42,65,.16); }
.al-brand { background: linear-gradient(150deg, var(--ink) 0%, #24405c 70%, var(--cloth) 140%); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem 2rem; }
.al-logo img { width: 132px; height: 132px; border-radius: 50%; object-fit: contain; background: rgba(255,255,255,.08); box-shadow: 0 0 0 6px rgba(255,255,255,.08); }
.al-brand h1 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 1.3rem 0 .2rem; }
.al-brand > p { color: var(--marigold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; margin: 0; }
.al-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.al-points li { background: rgba(255,255,255,.1); border-radius: 99px; padding: .35rem .85rem; font-size: .85rem; color: #dfe5ee; }
.al-points i { color: var(--marigold); margin-right: .35rem; }
.al-form { padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; }
.al-form h2 { font-family: var(--sans); font-weight: 800; font-size: 2.4rem; text-align: center; color: #4a4f57; margin-bottom: .3rem; }
.al-sub { text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: 1.6rem; }
.al-input { background: #f0f0f0; border: 1px solid transparent; border-radius: 10px; padding: .95rem 1.2rem; font-size: 1.02rem; }
.al-input:focus { background: #fff; border-color: var(--cloth); }
.al-eye { position: absolute; right: .6rem; top: .55rem; border: 0; background: none; color: var(--muted); font-size: 1.15rem; padding: .3rem .5rem; }
.al-link { color: var(--ink); font-weight: 500; }
.al-btn { background: var(--ink); color: #fff; border-radius: 10px; padding: .95rem; font-weight: 700; font-size: 1.05rem; }
.al-btn:hover, .al-btn:focus { background: var(--cloth); color: #fff; }
.al-foot { text-align: center; font-size: .9rem; color: var(--muted); margin: 1.4rem 0 .4rem; }
.al-back { text-align: center; font-size: .88rem; color: var(--muted); }
@media (max-width: 767.98px) {
    .al-card { grid-template-columns: 1fr; border-radius: 22px; }
    .al-brand { padding: 2rem 1.5rem; }
    .al-logo img { width: 84px; height: 84px; }
    .al-points { display: none; }
}

/* Author area: own top bar instead of the website header */
.author-bar { background: #141f30; padding: .7rem 0; position: sticky; top: 0; z-index: 1030; border-bottom: 1px solid rgba(255,255,255,.08); }
.author-bar .brand { font-size: 1.3rem; }
.author-bar-tag { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--marigold); color: var(--ink); border-radius: 6px; padding: .15rem .45rem; margin-left: .4rem; }
.author-bar-link { color: #c9d2df; font-size: .92rem; }
.author-bar-link:hover { color: var(--marigold); }
.author-band { border-top: 0; }
.author-foot { border-top: 1px solid var(--line); padding: 1.2rem 0; font-size: .88rem; color: var(--muted); }

/* Distribution partners (managed in Admin > Distribution partners) */
.partners-band { padding: 3rem 0 3.4rem; background: #fbfbfa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partners-title { font-family: var(--sans); font-weight: 500; font-size: 1.35rem; text-align: center; color: var(--ink); margin-bottom: 1.8rem; }
.partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.6rem 0; max-width: 1080px; margin: 0 auto; }
.partners .partner { flex: 0 0 16.666%; display: flex; align-items: center; justify-content: center; padding: 0 1rem; min-height: 56px; }
.partners img { max-height: 46px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.partners .partner:hover img { filter: none; opacity: 1; }
.partners b { color: #777; font-size: 1.15rem; font-weight: 600; text-align: center; }
@media (max-width: 991.98px) { .partners .partner { flex-basis: 25%; } }
@media (max-width: 575.98px) { .partners .partner { flex-basis: 33.333%; padding: 0 .5rem; } .partners img { max-height: 34px; } }
.service-card { position: relative; }
.service-card .stretched-link:hover ~ .service-body h3 { color: var(--cloth); }

/* WhatsApp floating button */
.wa-float { right: 22px; bottom: 22px; width: 60px; height: 60px; font-size: 1.9rem; animation: waPulse 2.6s ease-out infinite; transition: transform .2s; }
.wa-float:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }
.wa-tip { position: absolute; right: 72px; top: 50%; transform: translateY(-50%); background: #fff; color: var(--ink); font-size: .85rem; font-weight: 600; white-space: nowrap; padding: .4rem .75rem; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.15); opacity: 0; pointer-events: none; transition: opacity .2s; }
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5), 0 10px 24px rgba(0,0,0,.25); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0), 0 10px 24px rgba(0,0,0,.25); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 10px 24px rgba(0,0,0,.25); } }
@media (max-width: 575.98px) { .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; font-size: 1.7rem; } .wa-tip { display: none; } }
@media print { .wa-float { display: none !important; } }

/* WhatsApp chat box */
.wa-widget { position: fixed; right: 22px; bottom: 22px; z-index: 1045; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.wa-widget .wa-float { position: relative; right: auto; bottom: auto; border: 0; cursor: pointer; }
.wa-widget.open .wa-float { animation: none; }
.wa-widget.open .wa-tip { display: none; }
.wa-panel { width: 340px; max-width: calc(100vw - 28px); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.25); animation: waIn .2s ease-out; }
.wa-panel[hidden] { display: none; }
@keyframes waIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wa-head { background: #075e54; color: #fff; display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; }
.wa-head img { border-radius: 50%; background: #fff; flex-shrink: 0; object-fit: contain; }
.wa-head strong { display: block; font-size: 1rem; line-height: 1.2; }
.wa-head span { font-size: .78rem; opacity: .85; display: flex; align-items: center; gap: .35rem; }
.wa-dot { width: 8px; height: 8px; border-radius: 50%; background: #25d366; display: inline-block; }
.wa-close { background: none; border: 0; color: #fff; font-size: 1.05rem; padding: .25rem; opacity: .85; }
.wa-close:hover { opacity: 1; }
.wa-body { background: #ece5dd; padding: 1.1rem 1rem; min-height: 120px; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px; }
.wa-bubble { position: relative; background: #fff; border-radius: 0 10px 10px 10px; padding: .6rem .8rem 1.3rem; max-width: 88%; font-size: .9rem; line-height: 1.45; color: #303030; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
.wa-bubble b { display: block; color: #075e54; font-size: .8rem; margin-bottom: .2rem; }
.wa-bubble time { position: absolute; right: .6rem; bottom: .3rem; font-size: .7rem; color: #999; }
.wa-form { display: flex; gap: .5rem; padding: .7rem; background: #f0f0f0; align-items: flex-end; }
.wa-form textarea { flex: 1; border: 0; border-radius: 20px; padding: .55rem .9rem; font-size: .9rem; resize: none; max-height: 110px; field-sizing: content; min-height: 40px; }
.wa-form textarea:focus { outline: 2px solid #25d366; }
.wa-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #25d366; color: #fff; flex-shrink: 0; font-size: 1rem; }
.wa-form button:hover { background: #1ebe5a; }
.wa-note { text-align: center; font-size: .72rem; color: #8a8a8a; padding: 0 0 .55rem; background: #f0f0f0; }
@media (max-width: 575.98px) { .wa-widget { right: 14px; bottom: 14px; } }
@media print { .wa-widget { display: none !important; } }

/* Author dashboard: platforms + order detail */
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.plat-tile { display: flex; gap: .8rem; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.plat-tile i { font-size: 1.4rem; color: var(--cloth); width: 42px; height: 42px; border-radius: 10px; background: var(--sage); display: grid; place-items: center; flex-shrink: 0; }
.plat-tile strong { display: block; font-size: .95rem; }
.plat-tile span { color: var(--muted); font-size: .85rem; }
.row-link { cursor: pointer; }
.detail-list { display: grid; grid-template-columns: 40% 60%; row-gap: .5rem; font-size: .95rem; }
.detail-list dt { color: var(--muted); font-weight: 400; }
.detail-list dd { margin: 0; font-weight: 600; }
