/* Editorial refresh. Original typefaces, copy and images are retained. */
:root{--bg:#f5f3ed;--surface:#fffefa;--fg:#203332;--muted:#586660;--line:#dedfd4;--well:#174d49;--on-well:#fffdf5;--accent:#aa762e;--accent-ink:#805720}
:root[data-theme="dark"]{--bg:#102321;--surface:#19312e;--fg:#edf1e8;--muted:#b2c0b8;--line:#35504a;--well:#9ed1bd;--on-well:#102321;--accent-ink:#e0b56f}
body{font-size:16px;line-height:1.85}
.wrap{max-width:1240px}
header.site{background:#183a32!important;box-shadow:0 2px 14px #102b2420;border-bottom:1px solid #ffffff22}
header.site .bar{min-height:88px;gap:24px;padding-block:18px}
header.site .brand{gap:12px}
header.site .brand svg{width:40px;height:40px}
header.site .brand b{font-size:1.25rem;line-height:1.6}
header.site nav.main{gap:6px;margin-left:auto}
header.site nav.main a{font-size:.9rem;padding:10px 14px;border-radius:7px;transition:background .18s,color .18s}
header.site nav.main a:hover{background:#ffffff16}
header.site nav.main a[aria-current="page"]{background:#f4efdf;color:#183a32}
.more-toggle{min-width:44px;min-height:44px}
.more-menu{background:var(--surface);color:var(--fg);min-width:230px;border-color:var(--line);padding:8px;border-radius:12px}
.more-menu a{padding:12px 16px}
.more-menu a:hover{background:var(--bg)}
.front{margin:24px auto 0;max-width:1400px;border-radius:14px;box-shadow:0 12px 36px #172d2512}
.front-img{height:auto;min-height:0;aspect-ratio:16/9;object-fit:contain;object-position:center}
.front-cap{position:relative;width:100%;border-radius:0;padding:28px 36px;background:#183a32;backdrop-filter:none}
.cap-in{align-items:center;gap:36px}
.front-h{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;font-size:clamp(1.3rem,2.4vw,2rem);line-height:1.6;margin-bottom:12px;max-width:36ch}
.teaser{font-size:.95rem;line-height:1.9;max-width:90ch;color:#e4e9df;text-shadow:none}
.go{gap:12px;flex-direction:row;max-width:210px}
.go-t{max-width:125px;font-size:.85rem;line-height:1.7}
.go-ic{width:48px;height:48px;box-shadow:none;flex-shrink:0}
.go-ic::after,.go-ic svg{animation:none}
main.wrap,main.wrap:has(.page:not([hidden]) .books){width:100%;max-width:1240px;padding-block:64px 80px}
.head-row{align-items:center;margin-bottom:32px}
.head-row a{text-decoration:none;border-bottom:1px solid var(--line);padding-block:6px;font-size:.9rem}
.head-row h2,section.block>h2{font-size:clamp(1.6rem,3vw,2.2rem)}
.books{gap:28px}
.book{display:grid;grid-template-columns:minmax(180px,.85fr) minmax(0,1.45fr) minmax(240px,1fr);gap:32px;padding:32px;background:var(--surface);border:1px solid var(--line);border-radius:16px;align-items:start;box-shadow:0 4px 20px #193c2e04}
.book>.cover-img{grid-column:1;width:100%;max-width:270px;height:auto;aspect-ratio:auto;object-fit:contain;justify-self:center;align-self:start;border-radius:3px;box-shadow:0 12px 24px #16372c22}
.book>.info,.book[data-cover-measured="true"]>.info{grid-column:2;display:flex;gap:16px;justify-content:flex-start;max-height:none;overflow:visible;align-self:start}
.book h3{font-size:clamp(1.25rem,1.7vw,1.6rem);line-height:1.6}
.book .desc{font-size:.96rem;line-height:1.95}
.book .author{font-size:.95rem;line-height:1.8;margin:0}
.book .author .role{font-size:.85rem}
.people{padding:12px 0}.people p{line-height:1.8}.people p+p{margin-top:6px}
.book .facts{font-size:.82rem;gap:8px 18px;padding-top:16px}
.book>.purchase,.book[data-cover-measured="true"]>.purchase{grid-column:3;align-self:start!important;margin-top:0!important;max-height:none;overflow:visible;width:100%;padding:20px;gap:18px;background:var(--bg);border-radius:12px}
.purchase .fmt{flex-direction:column;gap:10px}
.purchase .fmt label{padding:14px;min-width:0;background:var(--surface);border-radius:8px;gap:6px;transition:border-color .18s,box-shadow .18s}
.fmt label:has(input:checked){border-color:var(--well);box-shadow:0 0 0 1px var(--well);background:var(--surface)}
.fmt label:has(input:checked) .k{color:var(--well);font-weight:600}
.btn{min-height:48px;justify-content:center;border-radius:7px;padding:12px 20px;transition:filter .18s,box-shadow .18s}
.book .purchase .btn{font-size:.92rem;padding:12px 14px}
.btn:hover{box-shadow:0 4px 12px #173d3020}
.note{padding:16px 20px;background:var(--surface);border-radius:0 8px 8px 0;font-size:.9rem;margin-bottom:32px}
.article{padding:28px;border-radius:12px;gap:14px}.article h3{line-height:1.65}.article p{line-height:1.9}.articles{gap:24px}.meta{font-size:.82rem}
.chip{min-height:44px;padding:8px 18px;background:var(--surface)}
.topic{padding:24px;background:var(--surface);border-radius:0 0 10px 10px}.topic h3{line-height:1.7;margin-bottom:12px}
.prose{max-width:70ch;line-height:2}.art-body{font-size:1.12rem;max-width:66ch}.big{max-width:38ch;line-height:1.85}
.contact-card{padding:32px;max-width:640px;border-radius:14px;gap:26px}.contact-card .lbl{margin-bottom:6px}.contact-card .val a{text-underline-offset:5px}
footer.site{padding-block:28px 40px;font-size:.85rem}
:focus-visible{outline:3px solid var(--accent);outline-offset:5px}
@media(min-width:761px) and (max-width:1100px){.book{grid-template-columns:210px minmax(0,1fr);gap:28px}.book>.purchase{grid-column:2}.book>.info{grid-column:2}.book>.cover-img{grid-row:1/3}.purchase .fmt{flex-direction:row}.purchase .fmt label{flex:1}header.site .brand b{font-size:1.1rem}}
@media(max-width:760px){header.site .bar{min-height:76px;padding-block:14px;gap:12px}header.site .brand b{font-size:1rem}header.site .brand svg{width:30px;height:30px}header.site nav.main a{font-size:.85rem;padding:10px}header.site nav.main{gap:4px}.front{margin-top:16px;border-radius:10px}.front-img{aspect-ratio:16/9;height:auto;object-fit:contain}.front-cap{padding:24px}.cap-in{flex-direction:column;align-items:stretch;gap:22px}.front-h{font-size:1.35rem}.teaser{font-size:.9rem}.go{max-width:none;align-self:flex-start;flex-direction:row}.go-t{max-width:180px;text-align:left}.go-ic{width:42px;height:42px}main.wrap,main.wrap:has(.page:not([hidden]) .books){padding-block:36px 48px}.book{display:flex;flex-direction:column;padding:24px;gap:26px}.book>.cover-img{width:min(72%,270px);max-width:270px;align-self:center}.book>.info{width:100%;gap:14px}.book>.purchase{padding:18px}.book .desc{font-size:.96rem}.book h3{font-size:1.35rem}.head-row{gap:16px;margin-bottom:24px}.head-row a{font-size:.8rem}.contact-card{padding:24px}.topics{gap:20px}.article{padding:24px}footer.site{gap:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* The complete lead caption opens the article. */
.article-caption-link{display:block;color:inherit;text-decoration:none;border-radius:6px}
.article-caption-link .front-h,.article-caption-link .teaser{animation:none}
.article-caption-link:hover .front-h,.article-caption-link:focus-visible .front-h{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:7px}
.article-caption-link:hover .teaser{color:#fff}
@keyframes article-glow{0%,100%{text-shadow:0 0 0 transparent}50%{text-shadow:0 0 16px #f3d79980,0 0 3px #f3d79950}}
@media(prefers-reduced-motion:reduce){.article-caption-link .front-h,.article-caption-link .teaser{animation:none}}

/* Restore the article title directly over the artwork. */
.front-artwork{position:relative}
.image-article-title{position:absolute;inset:0 0 auto;display:flex;justify-content:center;padding:clamp(18px,4vw,56px) 5% clamp(28px,5vw,68px);color:#fff8df;text-decoration:none;background:linear-gradient(180deg,rgba(24,18,9,.8),rgba(24,18,9,.35) 70%,transparent);text-align:center}
.image-article-title .front-h{position:static;width:auto;height:auto;clip:auto;overflow:visible;white-space:normal;max-width:30ch;margin:0;font-family:'Noto Serif Tamil',var(--display);font-size:clamp(1.05rem,3.1vw,2.65rem);line-height:1.65;text-shadow:0 2px 6px #201507;animation:title-soft-blink 3.2s ease-in-out infinite}
.image-article-title:hover .front-h{text-decoration:underline;text-underline-offset:8px;text-decoration-thickness:1px}
@keyframes title-soft-blink{0%,100%{opacity:1}50%{opacity:.72}}
@media(prefers-reduced-motion:reduce){.image-article-title .front-h{animation:none}}

/* Right-aligned artwork title with a fine ornamental rule. */
.image-article-title{inset:5% 3.5% auto auto;width:47%;display:block;padding:12px 8px 22px;background:none;text-align:right;color:#352414}
.image-article-title .front-h{font-family:'Noto Serif Tamil',var(--display);font-weight:700;font-size:clamp(1.05rem,2.65vw,2.3rem);line-height:1.8;max-width:none;text-wrap:balance;text-shadow:0 1px 1px #fff8e6,0 0 12px #fff4d799}
.image-article-title::after{content:"";display:block;width:72%;height:9px;margin:16px 0 0 auto;background:linear-gradient(90deg,transparent,#916123 28%,#54361b 88%,transparent) center/100% 1px no-repeat}
.image-article-title::before{content:"";position:absolute;right:8px;bottom:22px;width:7px;height:7px;border:1px solid #765024;transform:translateY(-1px) rotate(45deg);background:#e7cd94}
@media(max-width:760px){.image-article-title{top:3%;right:3%;width:53%;padding:4px 4px 14px}.image-article-title .front-h{font-size:clamp(.85rem,3vw,1.4rem);line-height:1.75}.image-article-title::after{margin-top:8px}.image-article-title::before{right:4px;bottom:14px;width:5px;height:5px}}

/* Match the supplied white, three-line title treatment. */
.image-article-title{top:11%;right:2.8%;width:47%;padding:0;background:none;color:#fffef1;text-align:center}
.image-article-title .front-h{font-family:'Noto Sans Tamil',var(--body);font-weight:700;font-size:clamp(1rem,2.9vw,2.6rem);line-height:1.55;letter-spacing:-.025em;text-shadow:0 2px 2px #3c352b99,1px 0 1px #3c352b66,-1px 0 1px #3c352b66;max-width:none}
.image-article-title .front-h span{display:block;white-space:nowrap}
.image-article-title::before,.image-article-title::after{display:none}
.title-ornament{display:block;width:92%;height:auto;margin:12px auto 0;color:#fffef1;filter:drop-shadow(0 1px 1px #3c352b55)}
@media(max-width:760px){.image-article-title{top:10%;right:2.5%;width:49%;padding:0}.image-article-title .front-h{font-size:clamp(.65rem,3.1vw,1.6rem);line-height:1.55}.title-ornament{margin-top:5px}}

/* Smaller pure-white lettering and a central eight-petal flower. */
.image-article-title,.title-ornament{color:#ffffff}
.image-article-title .front-h{color:#ffffff;font-size:clamp(.9rem,2.45vw,2.2rem)}
@media(max-width:760px){.image-article-title .front-h{font-size:clamp(.6rem,2.65vw,1.35rem)}}

/* The supplied artwork includes its own title; make that area clickable. */
/* The headline used to be painted on the right; the centred .hero-title link now covers it, so this old hotspot is retired. */
.artwork-article-link{display:none}
.artwork-article-link:hover{box-shadow:0 0 0 1px #ffffff70}
.artwork-article-link:focus-visible{outline:3px solid #fff;outline-offset:4px}

/* Caption sits beneath the right-hand philosophers, within the artwork. */
.front-artwork>.front-cap{position:absolute;right:2%;bottom:3%;width:43%;padding:18px 20px;border-radius:10px;background:rgba(18,17,13,.67);backdrop-filter:none;color:#fff}
.front-cap .cap-in{display:flex;flex-direction:column;align-items:stretch;gap:12px}
.front-cap .teaser{color:#fff;font-weight:700;font-size:clamp(.68rem,.95vw,.88rem);line-height:1.85;text-shadow:none;animation:none}
.front-cap .go{flex-direction:row;align-self:flex-end;max-width:none;gap:12px}
.front-cap .go-t{font-weight:700;font-size:clamp(.7rem,1vw,.9rem);max-width:none;text-align:right}
.front-cap .go-ic{width:34px;height:34px;background:#fff;color:#29271e}
@media(max-width:760px){.front-artwork>.front-cap{right:2%;bottom:3%;width:49%;padding:9px 10px;border-radius:6px;max-height:46%;overflow:auto;scrollbar-width:thin}.front-cap .cap-in{gap:8px}.front-cap .teaser{font-size:clamp(.55rem,1.8vw,.75rem);line-height:1.7}.front-cap .go-t{font-size:.6rem}.front-cap .go{gap:6px}.front-cap .go-ic{width:25px;height:25px}.front-cap .go-ic svg{width:17px;height:17px}}

/* Scale the caption with the artwork at every display width. */
.front-artwork{container-type:inline-size}
.front-artwork>.front-cap{right:2%;bottom:3%;width:37%;max-height:39%;padding:1.1cqw 1.25cqw;border:0;border-radius:.65cqw;overflow:hidden;background:rgba(18,17,13,.67)}
.front-cap .cap-in{gap:.7cqw}
.front-cap .teaser{font-size:.94cqw;line-height:1.8;overflow-wrap:break-word}
.front-cap .go{gap:.7cqw;max-width:100%}
.front-cap .go-t{font-size:.93cqw;line-height:1.6;max-width:none}
.front-cap .go-ic{width:2.5cqw;height:2.5cqw;min-width:0;min-height:0}
.front-cap .go-ic svg{width:1.5cqw;height:1.5cqw}

/* On narrow displays, shorten the excerpt instead of shrinking the type. */
@media(max-width:740px){
 .front-artwork>.front-cap{padding:6px 7px}
 .front-cap .cap-in{gap:4px}
 .front-cap .teaser{font-size:.7rem;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
 .front-cap .go{gap:4px;align-items:center}
 .front-cap .go-t{font-size:.6rem;line-height:1.4}
 .front-cap .go-ic{width:20px;height:20px;flex-shrink:0}
 .front-cap .go-ic svg{width:13px;height:13px}
}

/* A quiet Greek-inspired reading page, with 20% desktop side margins. */
main.wrap:has(#p-article:not([hidden])){width:100%;max-width:none;padding-block:48px 72px}
#p-article{width:60vw;margin-inline:auto}
.greek-article{position:relative;background:#fffaf0;color:#302d26;border:1px solid #dfd2b9;border-radius:4px;padding:clamp(24px,4vw,64px);box-shadow:0 12px 50px #4e3b1610;background-image:radial-gradient(ellipse at top,#f0e3c755,transparent 55%)}
.greek-article::before,.greek-article::after{content:"";position:absolute;top:42px;bottom:42px;width:7px;border-inline:1px solid #bda77c66;background:repeating-linear-gradient(90deg,transparent 0 2px,#bda77c33 2px 3px);pointer-events:none}
.greek-article::before{left:12px}.greek-article::after{right:12px}
.article-heading{text-align:center}.greek-temple{display:block;width:92px;height:60px;margin:0 auto 22px;color:#9e824c}
.article-heading .eyebrow{color:#846735;font-size:.82rem}
#p-article h1{font-size:clamp(1.6rem,2.6vw,2.65rem);line-height:1.65;margin:16px auto 24px;max-width:28ch;color:#35352a}
.article-byline{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 28px;color:#756343;font-size:.88rem}
.article-byline>span{display:inline-flex;align-items:center;gap:9px}.article-byline svg{width:19px;height:19px;flex-shrink:0}
.greek-rule{height:14px;margin:30px 0 36px;border-block:1px solid #bc9c5c66;background:repeating-linear-gradient(90deg,transparent 0 12px,#bc9c5c30 12px 14px,transparent 14px 24px)}
.greek-article .art-body{max-width:none;font-size:1.06rem;line-height:2.1;color:#403d34;overflow-wrap:break-word}
.greek-article .art-body p+p{margin-top:1.5em}
.article-return{margin-top:40px;padding-top:26px;border-top:1px solid #dfd2b9}
@media(max-width:900px){#p-article{width:80vw}.greek-article{padding:32px}.greek-article .art-body{font-size:1rem}}
@media(max-width:600px){main.wrap:has(#p-article:not([hidden])){padding-block:22px 40px}#p-article{width:100%}.greek-article{padding:28px 22px}.greek-article::before{left:6px}.greek-article::after{right:6px}#p-article h1{font-size:1.5rem}.article-byline{font-size:.8rem;gap:10px 18px}.greek-temple{width:74px;height:50px}.greek-article .art-body{font-size:.98rem;line-height:2}}

/* Matching graphite portraits flank the article title. */
.philosopher-title-row{display:grid;grid-template-columns:minmax(75px, .8fr) minmax(0,3fr) minmax(75px,.8fr);gap:16px;align-items:center;margin-block:12px 24px}
.philosopher-portrait{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;opacity:.88}
#p-article .philosopher-title-row h1{margin:0;font-size:clamp(1.35rem,2.1vw,2.2rem);line-height:1.7}
@media(max-width:600px){.philosopher-title-row{grid-template-columns:52px minmax(0,1fr) 52px;gap:8px}#p-article .philosopher-title-row h1{font-size:1.15rem;line-height:1.7}}

/* Larger portraits rise into the open header space without covering the title. */
.philosopher-title-row{position:relative}
.philosopher-portrait{position:relative;width:300%;max-width:none;justify-self:center;transform:translateY(-30%);pointer-events:none}
.plato-portrait{translate:-22% 0}
.socrates-portrait{translate:22% 0}
.article-heading{padding-top:clamp(38px,6vw,88px)}
.philosopher-title-row .front-h{position:relative;z-index:1}
@media(max-width:600px){.article-heading{padding-top:48px}.philosopher-portrait{width:300%;transform:translateY(-35%)}.plato-portrait{translate:-10% 0}.socrates-portrait{translate:10% 0}}

/* Keep the portraits within the article header and use its upper corners. */
.article-heading{position:relative;padding-top:12px;isolation:isolate}
.philosopher-title-row{position:static;display:grid;grid-template-columns:24% minmax(0,52%) 24%;gap:0;margin-block:18px 24px}
.philosopher-portrait{position:absolute;top:8px;width:26%;max-width:220px;height:auto;aspect-ratio:1;object-fit:contain;transform:none;translate:none;pointer-events:none}
.plato-portrait{left:0;right:auto;translate:none}
.socrates-portrait{right:0;left:auto;translate:none}
#p-article .philosopher-title-row h1{grid-column:2;position:relative;z-index:1;font-size:clamp(1.25rem,1.9vw,2rem);margin:0;line-height:1.75}
@media(max-width:600px){.article-heading{padding-top:8px}.philosopher-title-row{grid-template-columns:18% minmax(0,64%) 18%;margin-top:22px}.philosopher-portrait{top:4px;width:28%;max-width:none;transform:none;translate:none}#p-article .philosopher-title-row h1{font-size:1.15rem}.article-heading .greek-temple{width:55px;height:40px;margin-bottom:18px}}

/* Restore the original article box and bring the portraits inward slightly. */
main.wrap:has(#p-article:not([hidden])){width:100%;max-width:none;padding-block:48px 72px}
#p-article{width:60vw;margin-inline:auto}
.greek-article{padding:clamp(24px,4vw,64px)}
.article-heading{padding-top:0}
.plato-portrait{left:4%}
.socrates-portrait{right:4%}
@media(max-width:900px){#p-article{width:80vw}.greek-article{padding:32px}}
@media(max-width:600px){main.wrap:has(#p-article:not([hidden])){padding-block:22px 40px}#p-article{width:100%}.greek-article{padding:28px 22px}.article-heading{padding-top:0}.plato-portrait{left:3%}.socrates-portrait{right:3%}}

/* Clean Tamil typography for the article. */
#p-article h1,#p-article .philosopher-title-row h1{font-family:'Noto Sans Tamil',sans-serif;font-weight:700;line-height:1.7}
.greek-article .art-body{font-family:'Noto Sans Tamil',sans-serif;font-weight:400;font-size:1.02rem;line-height:2.05}
.article-byline{font-family:'Hanken Grotesk','Noto Sans Tamil',sans-serif}
@media(max-width:600px){.greek-article .art-body{font-size:.96rem;line-height:2}}

/* Raise both article portraits by three quarters of an inch. */
.philosopher-portrait{top:calc(8px - .75in)}
@media(max-width:600px){.philosopher-portrait{top:calc(4px - .75in)}}

/* Lower both portraits half an inch from the previous position. */
.philosopher-portrait{top:calc(8px - .25in)}
@media(max-width:600px){.philosopher-portrait{top:calc(4px - .25in)}}

/* Move each portrait half an inch outward; keep it inside the article box. */
.plato-portrait{left:max(0px,calc(4% - .5in))}
.socrates-portrait{right:max(0px,calc(4% - .5in))}
@media(max-width:600px){.plato-portrait{left:max(0px,calc(3% - .5in))}.socrates-portrait{right:max(0px,calc(3% - .5in))}}

/* Align both edges of article paragraphs, leaving final lines natural. */
.greek-article .art-body p{text-align:justify;text-align-last:start;text-justify:inter-word}

/* Compact the website title bar while preserving usable navigation. */
header.site .bar{min-height:52px;padding-block:4px}
header.site nav.main a{padding-block:6px}
header.site .brand svg{width:32px;height:32px}
@media(max-width:760px){header.site .bar{min-height:48px;padding-block:4px}header.site .brand svg{width:28px;height:28px}header.site nav.main a{padding-block:6px}}

/* Publisher logo beside the name. */
header.site .brand-logo{display:block;width:48px;height:48px;flex:none;object-fit:contain}
@media(max-width:760px){header.site .brand-logo{width:40px;height:40px}}

/* Warm book-page tones complement the well's timber, gold and teal. */
header.site{background:#f3e5c9!important;border-bottom:1px solid #cdb789;box-shadow:0 2px 12px #58422214}
header.site .brand b{color:#30473f;text-shadow:none}
header.site nav.main a{color:#465044;text-shadow:none}
header.site nav.main a:hover{color:#173f3c;background:#dcca9e55}
header.site nav.main a[aria-current="page"]{color:#fff9eb;background:#22544e}
header.site .more-toggle{color:#30473f;border-color:#bba477}
header.site .brand-logo{width:52px;height:52px;object-fit:contain}
@media(max-width:760px){header.site .brand-logo{width:44px;height:44px}}

/* The articles listing features the published Plato article only. */
.articles-page-title{font-size:clamp(1.8rem,3vw,2.5rem);margin-bottom:30px}
.plato-preview{padding:0;overflow:hidden}
.plato-preview-link{display:grid;grid-template-columns:minmax(240px,.95fr) minmax(0,1.25fr);color:inherit;text-decoration:none}
.plato-preview-image{width:100%;height:100%;min-height:280px;object-fit:cover}
.plato-preview-copy{padding:32px;display:flex;flex-direction:column;gap:18px}
.plato-preview-copy h2{font-family:'Noto Sans Tamil',sans-serif;font-size:clamp(1.25rem,2vw,1.7rem);line-height:1.7}
.plato-preview-copy p{display:-webkit-box;-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.preview-read{font-weight:600;color:var(--well);margin-top:auto}
.plato-preview-link:hover .preview-read{text-decoration:underline;text-underline-offset:5px}
@media(max-width:700px){.plato-preview-link{grid-template-columns:1fr}.plato-preview-image{height:auto;min-height:0;aspect-ratio:16/9}.plato-preview-copy{padding:24px}}

/* Books heading occupies the former note box. */
.books-heading-box{margin-top:8px}
.books-heading-box h1{font-size:clamp(1.3rem,2.6vw,2rem);line-height:1.6;margin:0;color:var(--fg)}

/* Free reader membership and ebook library. */
header.site nav.main .nav-login{border:1px solid #ac966c;padding-inline:12px}
.membership-layout{display:grid;grid-template-columns:1fr;align-items:start;max-width:408px;margin:0 0 0 auto}
.membership-intro h1{font-size:clamp(1.8rem,3vw,2.7rem);line-height:1.65;margin:14px 0 22px}
.membership-intro>p:not(.eyebrow){color:var(--muted);max-width:52ch}
.member-benefits{padding-left:22px;margin-block:24px 30px;color:var(--muted)}.member-benefits li+li{margin-top:10px}
.membership-card{padding:36px;border:1px solid var(--line);border-top:4px solid var(--well);border-radius:12px;background:var(--surface)}
.membership-card h2{font-size:1.4rem;margin-bottom:14px}.membership-card>p{font-size:.92rem;color:var(--muted)}
.membership-form{display:grid;gap:12px;margin-block:26px 18px}.membership-form label{font-size:.9rem;font-weight:600}
.membership-form input{width:100%;min-height:50px;font:inherit;padding:10px 14px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--fg)}
.membership-form .btn:disabled{opacity:.65;cursor:not-allowed}.membership-status{border-top:1px solid var(--line);padding-top:18px;margin-bottom:20px}
.membership-card>a{color:var(--well);font-size:.88rem;text-underline-offset:5px}
.library-intro{color:var(--muted);max-width:70ch;margin-bottom:30px}.library-empty{padding:48px 28px;text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;display:grid;justify-items:center;gap:20px}.library-empty img{object-fit:contain}.library-empty h2{font-size:1.4rem}.library-empty p{max-width:58ch;color:var(--muted)}
@media(max-width:760px){.membership-layout{grid-template-columns:1fr;gap:30px}.membership-card{padding:24px}.library-empty{padding:32px 22px}}

.newsletter-choice{display:flex;align-items:flex-start;gap:10px;font-weight:400!important;line-height:1.8}
.membership-form .newsletter-choice input{width:17px;height:17px;min-height:0;flex:none;margin-top:6px;accent-color:var(--well)}
.newsletter-choice small{display:block;color:var(--muted);font-size:.76rem}.member-signin-help{font-size:.83rem;color:var(--muted);line-height:1.9}

.member-book-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.member-book{display:grid;grid-template-columns:120px minmax(0,1fr);gap:24px;padding:26px;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.member-book>img{width:120px;height:auto;align-self:start;box-shadow:0 7px 18px #20333222}.member-book h2{font-size:1.5rem;margin-block:10px}.member-book p{color:var(--muted);font-size:.88rem}.member-book .eyebrow{font-size:.75rem}.member-file-info{margin-block:16px}.ebook-download{width:100%;font-size:.85rem}.ebook-download:disabled{opacity:.6;cursor:wait}
.member-session{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:20px;margin-bottom:24px;background:var(--surface);border:1px solid var(--line);border-radius:10px}.member-session .newsletter-choice{flex-basis:100%}.member-session .newsletter-choice input{width:17px;height:17px;accent-color:var(--well)}#member-address{overflow-wrap:anywhere}
@media(max-width:900px){.member-book-grid{grid-template-columns:1fr}}
@media(max-width:480px){.member-book{grid-template-columns:85px minmax(0,1fr);padding:18px;gap:16px}.member-book>img{width:85px}.member-book h2{font-size:1.2rem}}

#member-name-form{display:flex;flex-wrap:wrap;align-items:center;gap:12px}#member-name-form input{font:inherit;padding:8px 12px;border:1px solid var(--line);border-radius:6px;max-width:100%}

/* Optional password setup follows verified email sign-in. */
.login-methods{display:flex;gap:8px;margin-top:24px;flex-wrap:wrap}.login-methods button{font:inherit;font-size:.83rem;padding:10px 14px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--fg);cursor:pointer;min-height:44px}.login-methods button[aria-pressed="true"]{background:var(--well);color:var(--on-well);border-color:var(--well)}
.text-button{font:inherit;font-size:.85rem;text-align:left;border:0;background:none;color:var(--well);padding:8px 0;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.member-password-panel{flex-basis:100%;padding-top:18px;border-top:1px solid var(--line)}.member-password-panel summary{font-weight:600;color:var(--well);cursor:pointer;min-height:44px}.member-password-panel>p{max-width:70ch;color:var(--muted);font-size:.9rem}.member-password-panel .membership-form{max-width:480px}.member-password-panel small{color:var(--muted);font-size:.78rem}

.google-login-panel{display:grid;gap:20px;margin-block:24px}.google-login-panel>p{font-size:.9rem;color:var(--muted)}.google-signin{display:inline-flex;justify-content:center;align-items:center;gap:12px;min-height:48px;padding:12px 18px;border:1px solid #747775;border-radius:5px;background:#fff;color:#1f1f1f;font:500 16px Arial,sans-serif;cursor:pointer}.google-signin:hover{background:#f4f7fb}.google-signin:disabled{opacity:.55;cursor:wait}.google-signin svg{flex:none}.google-login-panel .newsletter-choice input{width:17px;height:17px;flex:none;accent-color:var(--well)}
/* Compact login card aligned to the right; 85% of its previous dimensions. */
#p-login .membership-card{padding:30.6px;border-radius:10.2px}
#p-login .membership-card h2{font-size:1.19rem;margin-bottom:11.9px;text-align:center}
#p-login .google-login-panel{gap:17px;margin-block:20.4px}
#p-login .google-signin{gap:10.2px;min-height:40.8px;padding:10.2px 15.3px;font-size:13.6px}
#p-login .google-signin svg{width:17px;height:17px}
@media(max-width:760px){#p-login .membership-card{padding:20.4px}}
.login-option-divider{display:block;text-align:center;color:var(--muted);font-size:.85rem;line-height:1}
/* Center the contact details in the available page area. */
#p-contact:not([hidden]){display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:55vh;text-align:center;gap:20px}
#p-contact>.eyebrow{margin:0}
#p-contact .contact-card{width:min(100%,640px);margin-inline:auto;box-sizing:border-box}
#p-contact .contact-card .row{justify-content:center;text-align:center}
.about-membership-layout{display:flex;flex-wrap:wrap;align-items:center;gap:48px}
.about-membership-layout>.prose{flex:1 1 60ch;width:100%;max-width:60ch;min-width:0;overflow-wrap:break-word}
.about-membership-layout>.btn{flex:0 0 auto;max-width:100%;box-sizing:border-box;margin-inline:auto;text-align:center;white-space:normal}
@media(max-width:760px){.about-membership-layout{gap:24px}}
#p-about .about-membership-layout>.prose{text-align:justify;text-justify:inter-word}
.about-title-block{width:max-content;max-width:100%;margin:0 auto 28px;text-align:center}
#p-about .about-title-block>.eyebrow{font-size:1.2em;margin:0 0 8px}
.about-ornament{display:flex;align-items:center;gap:12px;width:100%;margin:0;color:var(--well)}
.about-ornament::before,.about-ornament::after{content:"";height:1px;flex:1;background:currentColor;opacity:.55}
.about-ornament span{font-family:Georgia,serif;font-size:25px;line-height:1}
.profile-card{max-width:850px;margin:28px auto;padding:32px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.profile-fields>div{display:flex;flex-direction:column;gap:8px;min-width:0}.profile-wide{grid-column:1/-1}
.profile-fields label{font-size:.9rem;font-weight:600}
.profile-fields input{width:100%;box-sizing:border-box;min-width:0;font:inherit;color:var(--fg);padding:12px;border:1px solid var(--line);border-radius:7px;background:var(--bg)}
.profile-fields input:read-only{opacity:.75}.profile-fields input:focus-visible{outline:2px solid var(--well);outline-offset:2px}
.profile-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:24px}.profile-card .member-signin-help{margin-top:22px}
@media(max-width:600px){.profile-card{padding:22px 18px}.profile-fields{grid-template-columns:1fr}.profile-wide{grid-column:auto}.profile-actions>*{width:100%;box-sizing:border-box;text-align:center}}
.nav-login .t{display:block;max-width:min(28ch,40vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Login options: site fonts and softer pill buttons (wording unchanged). */
#p-login .google-signin{font:600 16.5px/1.2 'Hanken Grotesk',system-ui,sans-serif;letter-spacing:.015em;border:1.5px solid color-mix(in srgb,var(--well) 35%,#d7d3c8);border-radius:999px;min-height:46px;padding:11px 20px;color:var(--well);background:#fff;box-shadow:0 6px 16px -12px rgba(14,75,90,.6);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
#p-login .google-signin:hover:not(:disabled){transform:translateY(-1px);border-color:var(--well);box-shadow:0 10px 22px -12px rgba(14,75,90,.7);background:#fff}
#p-login .email-signin{background:var(--well);color:var(--on-well);border-color:var(--well)}
#p-login .email-signin:hover:not(:disabled){background:color-mix(in srgb,var(--well) 88%,#000)}
#p-login .login-option-divider{display:flex;align-items:center;gap:12px;font:italic 500 16.5px 'Spectral',Georgia,serif;color:var(--muted);text-transform:lowercase}
#p-login .login-option-divider::before,#p-login .login-option-divider::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--accent) 55%,transparent),transparent)}
/* Simple sum captcha on the email login and signup forms. */
#p-login .captcha{display:grid;gap:6px;margin-block:4px 10px}
#p-login .captcha label{font:500 14px 'Hanken Grotesk','Noto Sans Tamil',sans-serif;color:var(--muted)}
#p-login .captcha-q{font:700 17px 'Spectral',Georgia,serif;color:var(--well);letter-spacing:.04em;background:color-mix(in srgb,var(--accent) 14%,#fff);padding:1px 10px;border-radius:6px}
#p-login .captcha-row{display:flex;gap:8px}
#p-login .captcha-a{flex:1;min-width:0}
#p-login .captcha-new{flex:none;width:42px;border:1.5px solid color-mix(in srgb,var(--well) 35%,#d7d3c8);border-radius:999px;background:#fff;color:var(--well);font-size:18px;cursor:pointer}
#p-login .captcha-new:hover{border-color:var(--well)}
/* Hero headline is painted into hero_image.png at the top centre; this invisible link sits exactly over it.
   Sized by the artwork's height so it tracks the lettering on the wide and the phone crop. */
.hero-title{position:absolute;z-index:2;top:3.3%;left:50%;height:22.8%;aspect-ratio:380/175;transform:translateX(-50%);display:block}
/* Phones: show the home artwork as a full-width 9:16 portrait crop instead of a shrunken 16:9 strip. */
@media(max-width:760px){
 .front-artwork .front-img{aspect-ratio:9/16;height:auto;min-height:0;object-fit:cover;object-position:50% 50%}
 /* Never taller than the screen below the header, so the whole picture fits even on a 5-inch phone. */
 .front-artwork .front-img{max-height:calc(100vh - 84px);max-height:calc(100svh - 84px)}
 /* --hh is the picture's height; every caption size is a fixed share of it, like the headline, as on desktop. */
 .front-artwork>.front-cap{--hh:min(calc(100cqw * 16 / 9),calc(100svh - 84px));left:4%;right:4%;bottom:3%;width:auto;max-height:none;padding:calc(var(--hh) * .02) calc(var(--hh) * .024);border-radius:calc(var(--hh) * .012);overflow:visible}
 .front-cap .cap-in{gap:calc(var(--hh) * .012)}
 /* Phones show about a quarter of the excerpt (two lines) under the headline. */
 .front-cap .teaser{font-size:calc(var(--hh) * .0167);line-height:1.8;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
 .front-cap .go{gap:calc(var(--hh) * .012)}
 .front-cap .go-t{font-size:calc(var(--hh) * .0165)}
 .front-cap .go-ic{width:calc(var(--hh) * .045);height:calc(var(--hh) * .045)}
 .front-cap .go-ic svg{width:calc(var(--hh) * .027);height:calc(var(--hh) * .027)}
}
/* Topic chips on the articles page shrink with the screen instead of staying desktop-sized. */
@media(max-width:900px){
 .chips{gap:clamp(3px,1vw,8px);flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
 .chip{flex:0 0 auto;white-space:nowrap;font-size:clamp(.55rem,2.45vw,.9rem);min-height:clamp(26px,6.2vw,44px);padding:clamp(3px,.9vw,8px) clamp(4px,1.25vw,18px)}
}

/* Hover a philosopher in the home painting to see his name in Tamil and English. */
.philosopher{position:absolute;z-index:1;display:block;cursor:default;outline:none}
.philosopher[hidden]{display:none}
.philosopher-name{position:absolute;left:50%;top:-6px;transform:translate(-50%,-100%);display:flex;flex-direction:column;align-items:center;gap:1px;padding:5px 11px;border-radius:8px;background:rgba(18,14,8,.82);color:#fff;font:600 13px/1.35 'Noto Sans Tamil','Hanken Grotesk',sans-serif;white-space:nowrap;box-shadow:0 4px 14px rgba(0,0,0,.35);opacity:0;pointer-events:none;transition:opacity .15s ease}
.philosopher-name span{font:500 11.5px/1.3 'Hanken Grotesk',sans-serif;color:#e9dcc0;letter-spacing:.02em}
.philosopher:hover .philosopher-name,.philosopher.show .philosopher-name{opacity:1}
@media(max-width:760px){.philosopher-name{font-size:11px;padding:4px 8px}.philosopher-name span{font-size:10px}}
.front-artwork>.front-cap{z-index:3}
.front-artwork{overflow:clip}
.philosopher.edge-left .philosopher-name{left:0;transform:translate(0,-100%);align-items:flex-start}
.philosopher.edge-right .philosopher-name{left:auto;right:0;transform:translate(0,-100%);align-items:flex-end}

/* Book description stops at the bottom of the cover; "… மேலும் காண்க" reveals the rest. */
.book>.info{position:relative}
@media(min-width:601px){.book[data-cover-measured="true"]>.info:not(.expanded){max-height:var(--book-cover-height);overflow:hidden}}
@media(max-width:600px){.book>.info:not(.expanded) .desc-wrap{position:relative;max-height:11em;overflow:hidden}.book>.facts-row{order:3}}
.more-desc{position:absolute;right:0;bottom:0;padding:.35em 0 .1em 3.5em;border:0;font:600 .95rem 'Noto Sans Tamil',var(--body);color:var(--well);cursor:pointer;background:linear-gradient(90deg,transparent,var(--surface) 2.6em)}
.more-desc[hidden]{display:none}
.more-desc:hover{text-decoration:underline}
/* Amazon-style details row under each book: label, small drawing, value — centred. */
.book>.facts-row{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:center;gap:14px 0;margin:6px 0 0;padding-top:18px;border-top:1px solid var(--line)}
.facts-row>div{flex:0 1 150px;min-width:110px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:0 12px;border-left:1px solid var(--line)}
.facts-row>div:first-child{border-left:0}
.facts-row dt{font:500 .8rem/1.3 'Noto Sans Tamil',var(--body);color:var(--muted);min-height:2.6em;display:flex;align-items:flex-end;justify-content:center}
.facts-row dd{margin:0}
.facts-row .fact-ic svg{width:30px;height:30px;fill:none;stroke:var(--accent-ink);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.facts-row .fact-v{font:600 .9rem/1.35 'Hanken Grotesk','Noto Sans Tamil',sans-serif;color:var(--fg);overflow-wrap:anywhere}
@media(max-width:600px){.facts-row>div{flex-basis:33%;min-width:0;padding:0 6px}.facts-row>div:nth-child(3n+1){border-left:0}.facts-row .fact-ic svg{width:26px;height:26px}}
/* 761–1100px uses two columns (cover | text with purchase below); keep purchase in column 2 even after the cover is measured. */
@media(min-width:761px) and (max-width:1100px){.book>.purchase,.book[data-cover-measured="true"]>.purchase{grid-column:2}}
.facts-row .fact-nowrap{white-space:nowrap;overflow-wrap:normal;letter-spacing:-.01em}
@media(max-width:600px){.facts-row .fact-nowrap{font-size:.8rem}}

#library-status:empty{display:none}

.member-menu{position:fixed;right:16px;z-index:200;display:grid;min-width:200px;padding:6px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 28px rgba(0,0,0,.18)}.member-menu[hidden]{display:none!important}.member-menu a,.member-menu button{display:block;width:100%;padding:.75rem .9rem;border:0;border-radius:6px;background:none;color:inherit;font:inherit;text-align:left;text-decoration:none;cursor:pointer;white-space:nowrap}.member-menu a:hover,.member-menu button:hover,.member-menu a:focus-visible,.member-menu button:focus-visible{background:var(--ground)}

.paid-member #p-about .about-membership-layout>.btn{display:none}.paid-member #p-about .about-membership-layout{justify-content:center}

#p-profile .profile-title{text-align:center}
/* The hero sits directly under the title bar, with no gap. */
.front{margin-top:0}
/* Home: half a centimetre (19px) above and below the நூல்கள் heading. */
#front:not([hidden])+main.wrap{padding-top:25px}#p-home>section.block:first-child>.head-row{margin-bottom:25px}#p-home>section.block:first-child>.head-row h2{margin:0;line-height:1.2}
/* Sample Book box: same height as the e-book and print boxes, with a floral, script-lettered look. */
@media(min-width:1101px){.purchase .fmt{display:grid;grid-template-columns:1fr;grid-template-rows:1fr 1fr .68fr}.purchase .fmt label.fmt-sample{padding-block:6px}}
/* Phones: the sample box matches the other two in height, with roomier lettering and ornaments. */
@media(max-width:760px){.purchase .fmt{display:grid;grid-template-columns:1fr;grid-template-rows:1fr 1fr .68fr}.fmt label.fmt-sample{gap:2px;padding-block:6px}.fmt label.fmt-sample .k{font-size:1.5rem}.fmt label.fmt-sample .orn-rule{font-size:12px;width:70%}}
.fmt label.fmt-sample{align-items:center;justify-content:center;text-align:center;gap:2px;background:var(--surface)}
.fmt-sample .orn-top{display:block;line-height:0;color:#3f8fd8}
.fmt-sample .k{font-family:"Cormorant Garamond",Georgia,serif;font-style:italic;font-size:1.5rem;line-height:1.1;white-space:nowrap;color:var(--ink);font-weight:700!important;letter-spacing:.03em}
.fmt-sample:has(input:checked) .k{color:var(--well)}
.fmt-sample .k .orn{font-family:Georgia,serif;font-size:.6em;color:#3f8fd8;vertical-align:.25em}
.fmt-sample .orn-rule{display:flex;align-items:center;gap:8px;width:70%;font-size:11px;line-height:1;color:#3f8fd8}
.fmt-sample .orn-rule i{flex:1;height:1px;background:linear-gradient(90deg,transparent,#3f8fd899,transparent)}
/* The free sample box stands apart with a steady rose border. */
.fmt label.fmt-sample{position:relative;overflow:hidden;border:1.5px solid var(--line)}
.fmt label.fmt-sample:hover{transform:translateY(-2px);box-shadow:0 6px 16px #3f8fd833}
.fmt label.fmt-sample:has(input:checked){border-color:var(--well)}
@media(min-width:761px) and (max-width:1100px){.fmt label.fmt-sample .k{font-size:1.25rem;white-space:normal;line-height:1.15}}
/* Locked profile: fields read as plain details until Edit is pressed. */
.profile-locked .profile-fields input,.profile-locked .profile-fields input:read-only{opacity:1;border-color:transparent;background:transparent;padding-inline:0;cursor:default}
.profile-fields input#profile-email:read-only{opacity:1}
/* Compact profile: the whole card fits in one browser screen. */
main.wrap:has(#p-profile:not([hidden])){padding-top:22px}
#p-profile h1{margin:0 0 12px;font-size:clamp(1.4rem,3vw,1.9rem)}
#p-profile .profile-card{margin:0 auto;padding:18px 22px}
#p-profile .profile-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 16px}
#p-profile .profile-wide{grid-column:auto}
#p-profile .profile-fields>div{gap:3px}
#p-profile .profile-fields label{font-size:.8rem}
#p-profile .profile-fields input{padding:7px 10px}
#p-profile .profile-locked .profile-fields input{padding-inline:0}
#p-profile .profile-actions{margin-top:14px}
#p-profile #profile-status{margin:8px 0 0}
@media(max-width:600px){#p-profile .profile-card{padding:14px 14px}#p-profile .profile-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}#p-profile .profile-wide{grid-column:auto}#p-profile .profile-fields input{padding:6px 8px}}
/* Front/back cover thumbnails under each book cover, and the hover zoom (Amazon style). */
.book>.cover-thumbs{display:flex;justify-content:center;gap:10px;align-self:center;justify-self:center;margin-top:10px}
.cover-thumb{width:54px;padding:3px;border:1.5px solid var(--line);border-radius:6px;background:var(--surface);cursor:pointer;line-height:0}
.cover-thumb img{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:2px}
.cover-thumb.active,.cover-thumb:hover{border-color:var(--well);box-shadow:0 0 0 1px var(--well)}
/* Wider screens: the thumbnails share the cover's grid cell; the script pushes them below the cover. */
@media(min-width:761px){.book>.cover-thumbs{grid-column:1;grid-row:1;align-self:start}}
@media(min-width:1101px){.book>.cover-img,.book>.info,.book>.purchase{grid-row:1}}
@media(min-width:761px) and (max-width:1100px){.book>.info{grid-row:1}.book>.purchase{grid-row:2}.book>.cover-thumbs{grid-row:1/3}}
@media(hover:hover) and (pointer:fine) and (min-width:1101px){.book>.cover-img{cursor:crosshair}}
.zoom-lens{position:absolute;z-index:60;pointer-events:none;border:1px solid #fff;background:#ffffff40;box-shadow:0 0 0 1px #0003}
.zoom-pane{position:absolute;z-index:60;pointer-events:none;background-color:var(--surface);background-repeat:no-repeat;border:1px solid var(--line);border-radius:10px;box-shadow:0 14px 40px #0003}
.zoom-lens[hidden],.zoom-pane[hidden]{display:none}
/* Laptops: the book details sit in one row beside the cover thumbnails, under the text and buy box. */
@media(min-width:1101px){
.book>.cover-thumbs{grid-row:2;margin-top:0!important;align-self:center}
.book>.facts-row{grid-column:2/-1;grid-row:2;flex-wrap:nowrap;align-self:center;margin:0;padding-top:14px}
.book>.facts-row{justify-content:flex-start}
.book>.facts-row>div{flex:0 0 auto;min-width:0;padding:0 21px}
}
/* Tablets: still one row, full width under the cover. */
@media(min-width:761px) and (max-width:1100px){.book>.facts-row{flex-wrap:nowrap}.book>.facts-row>div{flex:1 1 0;min-width:0;padding:0 6px}}
/* Wider screens: the details row is slimmed to the height of the cover thumbnails. */
@media(min-width:761px){
.book>.facts-row{padding-top:13px;gap:0}
.book>.facts-row>div{gap:2px}
.book>.facts-row dt{min-height:0;font-size:.72rem;line-height:1.2}
.book>.facts-row .fact-ic svg{width:20px;height:20px}
.book>.facts-row .fact-v{font-size:.8rem;line-height:1.25}
}
/* Profile as a membership card: green side panel with the member's initial, details grouped beside it. */
#p-profile .profile-card{max-width:1080px;display:grid;grid-template-columns:270px minmax(0,1fr);padding:0;overflow:hidden;border-radius:18px;border:1px solid var(--line);background:var(--surface);box-shadow:0 18px 44px #16372c18}
#p-profile .profile-side{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:30px 22px 22px;color:#f4efe2;background:radial-gradient(circle at 50% 0,#ffffff1a,transparent 60%),linear-gradient(165deg,#1d5a54,#0f3a36)}
#p-profile .profile-side::before{content:"";position:absolute;inset:10px;border:1px solid #c9a45c55;border-radius:12px;pointer-events:none}
#p-profile .profile-avatar{display:grid;place-items:center;width:88px;height:88px;margin-bottom:8px;border-radius:50%;background:#f4efe2;color:#174d49;font:700 2.3rem/1 "Noto Serif Tamil",Spectral,serif;border:3px solid #c9a45c;box-shadow:0 0 0 5px #c9a45c33,0 8px 18px #0004}
#p-profile .profile-side-name{margin:0;font:600 1.25rem/1.3 "Noto Serif Tamil",Spectral,serif;overflow-wrap:anywhere}
#p-profile .profile-side-email{margin:0;font-size:.82rem;opacity:.85;overflow-wrap:anywhere}
#p-profile .profile-badge{display:none;margin:10px 0 0;padding:5px 14px;border:1px solid #c9a45c;border-radius:999px;background:#c9a45c26;color:#f1d9a0;font-size:.78rem;font-weight:600;letter-spacing:.02em}
.paid-member #p-profile .profile-badge{display:inline-block}
#p-profile .profile-side-orn{display:flex;align-items:center;gap:10px;width:70%;margin-top:auto;padding-top:16px;color:#c9a45c;font:22px/1 Georgia,serif}
#p-profile .profile-side-orn::before,#p-profile .profile-side-orn::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,#c9a45c99,transparent)}
#p-profile .profile-main{padding:22px 30px 20px}
#p-profile .profile-section{display:flex;align-items:center;gap:10px;margin:0 0 12px;font:600 .9rem/1.2 "Noto Sans Tamil",sans-serif;color:var(--accent-ink);letter-spacing:.02em}
#p-profile .profile-section::before{content:"✿";color:#a8435a;font-size:.85rem}
#p-profile .profile-section::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--line),transparent)}
#p-profile .profile-fields+.profile-section{margin-top:20px}
#p-profile .profile-fields label{font-size:.74rem;font-weight:500;color:var(--muted)}
#p-profile .profile-fields input{border-radius:8px;background:var(--bg);transition:border-color .15s,box-shadow .15s}
#p-profile .profile-fields input:focus{border-color:var(--well);box-shadow:0 0 0 3px #174d4922;outline:none}
#p-profile .profile-locked .profile-fields input,#p-profile .profile-locked .profile-fields input:read-only{border:0;border-bottom:1px dashed var(--line);border-radius:0;background:transparent;padding:4px 0;font-weight:600;color:var(--fg)}
#p-profile .profile-actions{margin-top:18px;justify-content:flex-end}
@media(max-width:760px){
#p-profile .profile-card{grid-template-columns:1fr}
#p-profile .profile-side{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;justify-items:start;text-align:left;gap:2px 14px;padding:18px 20px}
#p-profile .profile-avatar{width:58px;height:58px;margin:0;font-size:1.6rem;grid-row:1/4}
#p-profile .profile-side-orn{display:none}
#p-profile .profile-badge{margin:4px 0 0}
#p-profile .profile-main{padding:16px 16px 14px}
#p-profile .profile-actions{justify-content:stretch}
}
@media(max-width:760px){
#p-profile .profile-fields{gap:8px 12px}
#p-profile .profile-fields>div{gap:2px}
#p-profile .profile-fields label{font-size:.68rem;line-height:1.25}
#p-profile .profile-fields input{padding:6px 8px}
#p-profile .profile-section{margin-bottom:8px}
#p-profile .profile-fields+.profile-section{margin-top:14px}
#p-profile .profile-actions{flex-wrap:nowrap;gap:10px;margin-top:14px}
#p-profile .profile-actions>*{width:auto;flex:1 1 0;padding-inline:10px}
}
.blossom{display:inline-block;vertical-align:middle;overflow:visible}
/* Profile photo: the avatar circle shows the member's photo; a gold camera button sits on its edge. */
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#p-profile .profile-avatar-wrap{position:relative;margin-bottom:8px}
#p-profile .profile-avatar-wrap .profile-avatar{margin:0;background-size:cover;background-position:center}
#p-profile .profile-avatar.has-photo{color:transparent}
#p-profile .profile-photo-btn{position:absolute;right:-2px;bottom:-2px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#c9a45c;color:#123c38;border:2px solid #f4efe2;box-shadow:0 3px 8px #0004;cursor:pointer;transition:transform .15s}
#p-profile .profile-photo-btn:hover{transform:scale(1.08)}
#p-profile .profile-photo-input:focus-visible+.profile-photo-btn,#p-profile .profile-photo-btn:focus-within{outline:2px solid #f4efe2;outline-offset:2px}
#p-profile .profile-photo-menu{position:absolute;left:calc(100% + 6px);top:calc(100% - 14px);z-index:5;display:grid;min-width:150px;padding:6px;border-radius:10px;background:var(--surface);border:1px solid var(--line);box-shadow:0 10px 26px #0003;text-align:left}
#p-profile .profile-photo-menu[hidden]{display:none}
#p-profile .photo-menu-item{display:block;width:100%;white-space:nowrap;box-sizing:border-box;padding:8px 12px;border:0;border-radius:6px;background:none;color:var(--fg);font:500 .85rem/1.3 "Noto Sans Tamil",sans-serif;text-align:left;cursor:pointer}
#p-profile .photo-menu-item:hover{background:var(--bg)}
#p-profile #profile-photo-remove{color:#a8435a}
@media(max-width:760px){#p-profile .profile-photo-menu{left:0;top:calc(100% + 8px)}}
@media(max-width:760px){#p-profile .profile-avatar-wrap{grid-row:1/4;margin:0}#p-profile .profile-photo-btn{width:24px;height:24px;right:-4px;bottom:-4px}#p-profile .profile-photo-btn svg{width:13px;height:13px}}
/* About: signed out, the logo sits above the join button; signed in, it moves to the left of the text. */
#p-about .about-membership-layout{display:grid;grid-template-columns:minmax(0,60ch) minmax(0,1fr);grid-template-areas:"prose logo" "prose btn";align-items:center;column-gap:48px;row-gap:18px}
#p-about .about-membership-layout>.prose{grid-area:prose;width:auto;max-width:none}
#p-about .about-logo{grid-area:logo;justify-self:center;align-self:end;width:300px;height:auto}
#p-about .about-membership-layout>.btn{grid-area:btn;justify-self:center;align-self:start;margin:0}
.signed-in #p-about .about-membership-layout{grid-template-columns:auto minmax(0,60ch) minmax(0,1fr);grid-template-areas:"logo prose btn"}
.signed-in #p-about .about-logo{align-self:center;width:260px}
.signed-in #p-about .about-membership-layout>.btn{align-self:center}
.paid-member #p-about .about-membership-layout{grid-template-columns:auto minmax(0,60ch);grid-template-areas:"logo prose";justify-content:center}
@media(max-width:760px){
#p-about .about-membership-layout,.signed-in #p-about .about-membership-layout,.paid-member #p-about .about-membership-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"prose" "logo" "btn";justify-content:stretch}
.signed-in #p-about .about-membership-layout{grid-template-areas:"logo" "prose" "btn"}
.paid-member #p-about .about-membership-layout{grid-template-areas:"logo" "prose"}
#p-about .about-logo,.signed-in #p-about .about-logo{width:220px;justify-self:center}
}
/* The well logo fills the open space in the green panel, between the badge and the ornament. */
#p-profile .profile-side-logo{width:130px;height:auto;margin:auto 0 0;filter:drop-shadow(0 8px 14px #0006)}
#p-profile .profile-side-logo+.profile-side-orn{margin-top:6px}
@media(max-width:760px){#p-profile .profile-side-logo{display:none}}
/* About, paid members (laptops): the logo sits 1 inch further left of the centred text. */
@media(min-width:761px){.paid-member #p-about .about-logo{position:relative;left:-1in}}
/* Purchase panel: spacing cut by 40% (panel padding 20→12, gaps 18→11 and 10→6, box padding 14→8, inner gap 6→4). */
.book>.purchase,.book[data-cover-measured="true"]>.purchase{padding:12px;gap:11px}
.purchase .fmt{gap:6px}
.book .purchase .fmt label{padding:8px 10px;gap:4px}
@media(min-width:1101px),(max-width:760px){.book .purchase .fmt label.fmt-sample{padding-block:4px}}
/* The shorter sample box: slightly smaller lettering and ornaments so nothing is clipped. */
@media(min-width:1101px),(max-width:760px){.book .purchase .fmt label.fmt-sample .k{font-size:1.35rem;line-height:1.05}.book .purchase .fmt label.fmt-sample .orn-rule{font-size:10px}}
/* Header name drawn in the publisher's SUNDARAM-2852 lettering (vector outlines); same width as the old text. */
header.site .brand .brand-name-svg{display:block;width:11.8em;height:auto;overflow:visible}
/* 1 inch between the logo and the name on wider screens; phones keep a small gap so the header still fits. */
@media(min-width:761px){header.site .brand{gap:.29in}}
/* Notice after returning from the membership payment (membership/client.js) */
.pay-notice{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:60;width:min(560px,calc(100% - 32px));display:flex;align-items:center;gap:.8em;flex-wrap:wrap;padding:.85em 2.4em .85em 1.1em;background:#1f4d3a;color:#fff;border-radius:10px;box-shadow:0 8px 28px rgba(0,0,0,.28);font-size:.95rem;line-height:1.5}
.pay-notice[hidden]{display:none}
.pay-notice p{margin:0;flex:1 1 15em}
.pay-notice .btn{background:#fff;color:#1f4d3a;border-color:#fff}
.pay-notice-close{position:absolute;top:.35em;right:.5em;background:none;border:0;color:#fff;font-size:1.3rem;line-height:1;cursor:pointer;padding:.2em}
/* Cloudflare Turnstile check in the login and sign-up forms (replaces the sum question) */
#p-login .captcha.turnstile{display:block;min-height:65px}
/* Answer shown right under "கடவுச்சொல் மறந்துவிட்டதா?" */
.password-help-note{margin:2px 0 8px;padding:10px 12px;border-radius:8px;background:#eef6f1;border:1px solid #bfdccb;color:#1f4d3a;font-size:14px;line-height:1.6}
.password-help-note[hidden]{display:none}
/* A button or link that is working on something: it says so and cannot be clicked again */
.is-busy,[aria-disabled="true"]{cursor:progress!important;opacity:.75;pointer-events:none}
/* Password section of the profile card */
#p-profile .profile-password{margin-top:22px}
#p-profile .password-form{display:grid;gap:6px;max-width:440px}
#p-profile .password-form [hidden]{display:none}
#p-profile .password-form small{color:var(--muted);font-size:.78rem}
#p-profile .password-form .profile-actions{justify-content:flex-start;margin-top:10px}
#p-profile .password-forgot-row{margin:6px 0 0;font-size:.85rem;color:var(--muted)}
#p-profile .password-forgot-row .text-button{padding:0 0 0 4px;font-size:.85rem}
#p-profile .password-status:empty{display:none}
#p-profile .password-status{margin:12px 0 0;padding:10px 12px;border-radius:8px;background:#eef6f1;border:1px solid #bfdccb;color:#1f4d3a;font-size:.88rem;line-height:1.6;max-width:560px}
#p-profile .password-reset-intro{margin:0 0 12px;color:var(--well);font-weight:500}
/* Arriving from a forgot-password email: only the two new-password boxes are shown */
#p-profile.password-reset-mode .profile-side,
#p-profile.password-reset-mode #member-profile-form,
#p-profile.password-reset-mode #profile-status{display:none}
#p-profile.password-reset-mode .profile-card{grid-template-columns:1fr;max-width:560px;margin-inline:auto}
#p-profile.password-reset-mode .profile-password{margin-top:0}
/* Text above the "confirm" button when arriving from an email link */
.member-confirm-note{margin:0 0 14px;padding:12px 14px;border-radius:8px;background:#eef6f1;border:1px solid #bfdccb;color:#1f4d3a;line-height:1.7}
/* Phones: each format box takes the height its content needs. A fixed share (.68fr) for the sample
   box squeezed and clipped it when the phone uses a larger text size, and left a gap below it. */
@media(max-width:760px){
 .book .purchase .fmt{grid-template-rows:none;grid-auto-rows:auto}
 .book .purchase .fmt label.fmt-sample{overflow:visible;padding-block:8px;min-height:0}
}
/* Book text: half the space between lines (author/translator rows and the description) */
.book .info .desc{line-height:1.45!important}
.book .info .people p{line-height:1.4}
.book .info .people p+p{margin-top:3px}
/* "குறைவாகக் காண்க" closes the opened description */
.less-desc{display:block;margin:6px 0 0 auto;padding:.3em 0;border:0;background:none;font:600 .95rem 'Noto Sans Tamil',var(--body);color:var(--well);cursor:pointer}
.less-desc[hidden]{display:none}
.less-desc:hover{text-decoration:underline}
/* Membership payment box: login email shown locked, then Razorpay's window opens over the page */
.pay-box{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:16px;background:#0f1f1a99}
.pay-box[hidden]{display:none}
.pay-box-card{position:relative;display:grid;gap:8px;width:min(420px,100%);padding:26px 24px 20px;border-radius:14px;background:var(--surface);box-shadow:0 18px 50px #0006}
.pay-box-card h2{margin:0 0 2px;font:700 1.25rem/1.3 "Noto Serif Tamil",Spectral,serif;color:var(--well)}
.pay-box-price{margin:0 0 8px;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.pay-box-price s{color:var(--muted)}.pay-box-price b{font-size:1.5rem;color:var(--well)}.pay-box-price span{font-size:.85rem;color:var(--muted)}
.pay-box-card label{font-weight:600;font-size:.9rem}
.pay-box-card input[readonly]{background:#eef2ef;color:#1f4d3a;border:1.5px solid var(--line);border-radius:8px;padding:10px 12px;font:600 1rem/1.3 var(--body);cursor:not-allowed}
.pay-box-card small{color:var(--muted);font-size:.8rem;line-height:1.5}
.pay-box-pay{margin-top:8px;width:100%}
.pay-box-status:empty{display:none}
.pay-box-status{margin:4px 0 0;font-size:.88rem;color:#8a3b12;line-height:1.5}
.pay-box-close{position:absolute;top:8px;right:10px;border:0;background:none;font-size:1.5rem;line-height:1;color:var(--muted);cursor:pointer;padding:4px}
/* Lifetime-membership box copied between books (home and books pages) and under the About logo */
.books>.supporter-inline{margin:0}
.paid-member .supporter-inline,.paid-member #p-about .about-join{display:none}
#p-about .about-membership-layout>.about-join{grid-area:btn;justify-self:center;align-self:start;width:100%;max-width:420px;margin:0}
.signed-in #p-about .about-membership-layout>.about-join{align-self:center}
.supporter-stack{flex-direction:column;align-items:stretch;gap:.8rem;margin-top:0;padding:1.2rem 1.2rem 1.2rem 1.5rem}
.supporter-stack .supporter-badge{align-self:flex-start}
.supporter-stack .supporter-body{flex:none}
.supporter-stack .btn{width:100%;justify-content:center;text-align:center}
/* About: the membership box is a wide rectangle under the text and the logo, lined up with the text. */
@media(min-width:761px){
 #p-about .about-membership-layout{grid-template-areas:"prose logo" "btn btn"}
 #p-about .about-logo{align-self:center}
 .signed-in:not(.paid-member) #p-about .about-membership-layout{grid-template-columns:260px minmax(0,60ch);grid-template-areas:"logo prose" "btn btn";justify-content:center}
}
#p-about .about-membership-layout>.about-join{justify-self:stretch;max-width:none;width:auto;align-self:start}
#p-about .about-join .supporter{margin-top:0}
/* About, signed out (laptops): text on the left; on the right the well logo at the top with the
   membership box under it, both within the height of the text. */
@media(min-width:761px){
 html:not(.signed-in) #p-about .about-membership-layout{grid-template-areas:"prose logo" "prose btn";grid-template-rows:auto 1fr;align-items:start;row-gap:12px}
 html:not(.signed-in) #p-about .about-logo{align-self:start;width:190px}
 html:not(.signed-in) #p-about .about-membership-layout>.about-join{align-self:start}
}
/* Smaller laptops: the right column is too narrow for the box beside the text, so it runs under both. */
@media(min-width:761px) and (max-width:1199px){
 html:not(.signed-in) #p-about .about-membership-layout{grid-template-areas:"prose logo" "btn btn";grid-template-rows:auto auto;align-items:center;row-gap:24px}
 html:not(.signed-in) #p-about .about-logo{align-self:center;width:240px}
}
/* About (not yet a paid member), laptops: three columns with even gaps — the text on the left, the well
   in the middle and the membership box standing upright on the right, all centred on the text. */
@media(min-width:1200px){
 html:not(.paid-member) #p-about .about-membership-layout{grid-template-columns:minmax(0,60ch) 220px 300px;grid-template-areas:"prose logo btn";grid-template-rows:auto;align-items:center;justify-content:center;column-gap:56px;row-gap:0}
 html:not(.paid-member) #p-about .about-logo{grid-area:logo;align-self:center;justify-self:center;width:220px}
 html:not(.paid-member) #p-about .about-membership-layout>.about-join{grid-area:btn;align-self:center;justify-self:stretch;width:auto;max-width:none}
}
/* Smaller laptops: the well on top, then the text with the upright box beside it. */
@media(min-width:761px) and (max-width:1199px){
 html:not(.paid-member) #p-about .about-membership-layout{grid-template-columns:minmax(0,60ch) 280px;grid-template-areas:"logo logo" "prose btn";grid-template-rows:auto auto;align-items:center;justify-content:center;column-gap:40px;row-gap:24px}
 html:not(.paid-member) #p-about .about-logo{grid-area:logo;align-self:center;justify-self:center;width:200px}
 html:not(.paid-member) #p-about .about-membership-layout>.about-join{grid-area:btn;align-self:center;justify-self:stretch;width:auto;max-width:none}
}
/* The upright box: a soft card with the button across its foot. */
#p-about .supporter-stack{gap:.9rem;padding:1.4rem 1.3rem 1.3rem 1.6rem;box-shadow:0 14px 34px #16372c1f}
#p-about .supporter-stack .supporter-badge{align-self:center}
#p-about .supporter-stack .supporter-k{text-align:center;line-height:1.4}
#p-about .supporter-stack .supporter-price{justify-content:center}
#p-about .supporter-stack .supporter-note{text-align:justify}
@media(max-width:760px){#p-about .about-membership-layout>.about-join{justify-self:stretch;max-width:none}}
@media(min-width:1200px){
 html:not(.paid-member) #p-about .about-membership-layout{grid-template-columns:minmax(0,60ch) 200px 330px;column-gap:48px}
 html:not(.paid-member) #p-about .about-logo{width:200px}
}
#p-about .supporter-stack .supporter-note{text-align:left;line-height:1.65}
/* About, laptops: the columns spread to the full page width — the text about 2 cm further left, the box
   about 2 cm further right — and the well grows to fill the wider middle. */
@media(min-width:1200px){
 html:not(.paid-member) #p-about .about-membership-layout{grid-template-columns:minmax(0,60ch) minmax(200px,1fr) 330px;justify-content:stretch;column-gap:48px}
 html:not(.paid-member) #p-about .about-logo{width:min(100%,330px)}
}
@media(min-width:1340px){html:not(.paid-member) #p-about .about-membership-layout{margin-inline:-1cm}}
/* About: the membership box without the coloured stripe on its left side. */
#p-about .supporter::before{display:none}
#p-about .supporter-stack{padding-left:1.3rem}
/* Login card: email address and தொடர்க first, then அல்லது, the terms line and Google. */
#p-login .email-start{display:grid;gap:8px}
#p-login .email-start label{font-weight:600;font-size:.95rem}
#p-login .email-start input{min-height:48px;padding:10px 14px;border:1.5px solid #8f8f8f;border-radius:6px;font-size:1rem;background:#fff}
#p-login .email-start input:focus{outline:2px solid var(--well);outline-offset:1px;border-color:var(--well)}
#p-login .email-continue{width:100%;min-height:50px;margin-top:10px;border-radius:6px;background:#141414;border-color:#141414;color:#fff;font-size:1.05rem;font-weight:700;justify-content:center}
#p-login .email-continue:hover{background:#000}
#p-login .email-start-note{margin:2px 0 0;font-size:.85rem;color:#8a3b12}
#p-login .login-option-divider{font-style:normal;font-family:'Noto Sans Tamil',var(--body);text-transform:none}
#p-login .login-terms{margin:0;text-align:center;font-size:.88rem;line-height:1.7;color:var(--ink)}
#p-login .login-terms a{color:inherit;text-decoration:underline;text-underline-offset:3px}
#p-login .google-continue{width:100%;border-radius:6px;border:1.5px solid #141414;background:#fff;color:#141414;font-family:'Noto Sans Tamil','Hanken Grotesk',sans-serif}
#p-login .google-continue:hover:not(:disabled){background:#f7f7f7;border-color:#000}

/* New-account step: password boxes keep the original one-under-the-other layout. */
#p-login .pw-pair{display:contents}
#p-login .pw-pair>div{display:contents}
/* Login page on laptops: the membership box on the left, beside the login box on the right. */
@media(min-width:900px){
 #p-login:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) 408px;grid-template-areas:"sup card";column-gap:48px;align-items:center}
 #p-login>.membership-layout{grid-area:card;margin:0}
 #p-login>.supporter{grid-area:sup;margin:0;align-self:center}
 #p-login .membership-card{margin:0}
}
@media(min-width:900px){
 main.wrap:has(#p-login:not([hidden])){padding-block:28px 28px}
 #p-login .membership-status:empty{display:none}
}
/* Login page on laptops: the footer lines sit at the bottom of the screen, 3 cm above its lower edge
   (when the login steps are taller than the screen, the page scrolls and the 3 cm stay below the footer). */
@media(min-width:900px){
 body:has(#p-login:not([hidden])){min-height:100vh;display:flex;flex-direction:column}
 body:has(#p-login:not([hidden]))>main.wrap{flex:1 0 auto}
 body:has(#p-login:not([hidden]))>footer.site{padding-bottom:3cm;margin-bottom:0}
}
/* Login page: the arrow in the membership box pointing to the login box. */
#p-login .login-arrow{flex:none;display:inline-grid;place-items:center;padding:6px 4px;color:var(--well);border-radius:10px;animation:login-arrow-nudge 1.6s ease-in-out infinite}
#p-login .login-arrow:hover,#p-login .login-arrow:focus-visible{color:var(--accent-ink)}
#p-login .login-arrow:focus-visible{outline:2px solid var(--well);outline-offset:3px}
@keyframes login-arrow-nudge{0%,100%{transform:translateX(0)}50%{transform:translateX(10px)}}
@media(prefers-reduced-motion:reduce){#p-login .login-arrow{animation:none}}
#p-login .membership-card.login-glow{animation:login-glow 1.2s ease-out}
@keyframes login-glow{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--well) 55%,transparent)}100%{box-shadow:0 0 0 14px transparent}}
/* Phones: the login box is below, so the arrow turns to point down. */
/* The arrow turns towards the login box (direction worked out on the page, see index.html). */
#p-login .login-arrow svg{transition:transform .25s}
#p-login .login-arrow[data-dir="down"] svg{transform:rotate(90deg)}
#p-login .login-arrow[data-dir="up"] svg{transform:rotate(-90deg)}
#p-login .login-arrow[data-dir="left"] svg{transform:rotate(180deg)}
@media(max-width:899px){#p-login .login-arrow{margin-inline:auto}}
#p-login .login-arrow[data-dir="up"],#p-login .login-arrow[data-dir="down"]{animation-name:login-arrow-nudge-v}
#p-login .login-arrow[data-dir="left"]{animation-name:login-arrow-nudge-l}
@keyframes login-arrow-nudge-v{0%,100%{translate:0 0}50%{translate:0 var(--nudge,-10px)}}
#p-login .login-arrow[data-dir="down"]{--nudge:10px}
@keyframes login-arrow-nudge-l{0%,100%{transform:translateX(0)}50%{transform:translateX(-10px)}}
/* Login page on laptops: the login box and the membership box at 80% of their size. */
@media(min-width:900px){
 #p-login:not([hidden]){grid-template-columns:minmax(0,1fr) 327px}
 #p-login .membership-card,#p-login>.supporter{zoom:.8}
}
@media(min-width:900px){main.wrap:has(#p-login:not([hidden])){padding-bottom:22px}}
/* Login page: the membership box at the same size as on the other pages (only the login box stays at 80%);
   it is shorter in length, as the arrow takes the place of the button with words. */
@media(min-width:900px){
 #p-login>.supporter{zoom:1;justify-self:start;width:auto;max-width:660px}
}
#p-login .login-arrow.arrow-off{display:none}
/* Login box 10% larger than before (80% → 88% of its original size); text grows with it. */
@media(min-width:900px){
 #p-login:not([hidden]){grid-template-columns:minmax(0,1fr) 359px}
 #p-login .membership-card{zoom:.88}
}
@media(min-width:900px){main.wrap:has(#p-login:not([hidden])){padding-block:10px 4px}}
/* "தொடக்க விழா சலுகை" above the membership price: a small ribbon in a warm red. */
.supporter-offer,.supporter-k.launch-offer{display:inline-block;margin:.25rem 0 .1rem!important;padding:.12rem .7rem;border-radius:999px;background:#fdecea;border:1px solid #f1b9b0;color:#b3261e;font:700 .8rem/1.5 'Noto Sans Tamil',var(--body);letter-spacing:.02em}
.pay-box-card .launch-offer{justify-self:start;margin:0!important}
/* அறிமுகச் சலுகை: drawn in the header title's SUNDARAM-2852 lettering (as the header), with small stars either side. */
.launch-offer .offer-svg{display:inline-block;height:1.3em;width:auto;vertical-align:-.32em}
.supporter-offer,.supporter-k.launch-offer{font-family:Catamaran,'Noto Sans Tamil',var(--body);font-weight:800;font-size:.92rem;letter-spacing:.04em;padding:.1rem .85rem;background:linear-gradient(135deg,#fff3ef,#fbdcd5);box-shadow:0 1px 2px #b3261e22;text-shadow:0 1px 0 #fff}
.supporter-offer::before,.supporter-k.launch-offer::before,.supporter-offer::after,.supporter-k.launch-offer::after{content:"\2726";font-size:.65em;vertical-align:.2em;color:#d0705f}
.supporter-offer::before,.supporter-k.launch-offer::before{margin-right:.45em}.supporter-offer::after,.supporter-k.launch-offer::after{margin-left:.45em}
/* Login first screen: "புதிய உறுப்பினரா? கணக்கு உருவாக்குங்கள்" */
#p-login .signup-start{display:block;margin:2px auto 0;text-align:center}

/* Book titles open the book's own page. */
.book .info h3 .book-title-link{color:inherit;text-decoration:none;background-image:linear-gradient(currentColor,currentColor);background-size:0 1.5px;background-position:0 100%;background-repeat:no-repeat;transition:background-size .25s}
.book .info h3 .book-title-link:hover,.book .info h3 .book-title-link:focus-visible{background-size:100% 1.5px;color:var(--well)}

/* One book's page */
#p-book .book-back{margin:0 0 18px}
#p-book .book-back a{color:var(--well);font-weight:600;text-decoration:none}
#p-book .book-back a:hover{text-decoration:underline}
#p-book .book-detail{margin-bottom:8px}

/* Readers' reviews */
.reviews{margin-top:36px;padding-top:28px;border-top:1px solid var(--line)}
.reviews-title{display:flex;align-items:center;gap:12px;margin:0 0 20px;font:700 1.35rem/1.3 'Noto Serif Tamil',Spectral,serif;color:var(--ink)}
.reviews-title::before{content:"✿";color:#a8435a;font-size:1rem}
.reviews-title::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--line),transparent)}
.reviews-wait,.reviews-empty{color:var(--muted)}
.reviews-grid{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:36px;align-items:start}
@media(max-width:760px){.reviews-grid{grid-template-columns:1fr;gap:24px}}
.reviews-summary{position:sticky;top:90px;padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 10px 26px #16372c12}
@media(max-width:760px){.reviews-summary{position:static}}
.reviews-avg{display:flex;align-items:baseline;gap:8px;margin:0;flex-wrap:wrap}
.reviews-avg b{font:700 2rem/1 Spectral,Georgia,serif;color:var(--ink)}
.reviews-avg>span:last-child{color:var(--muted)}
.reviews-count{margin:4px 0 14px;color:var(--muted);font-size:.9rem}
.stars{position:relative;display:inline-block;font-size:1.05rem;line-height:1;letter-spacing:2px;color:#d9d2c3;vertical-align:middle}
.stars::before{content:"★★★★★"}
.stars-fill{position:absolute;inset:0 auto 0 0;overflow:hidden;white-space:nowrap;color:#e3a008}
.stars-fill::before{content:"★★★★★"}
.reviews-avg .stars{font-size:1.35rem}
.reviews-bars{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:7px}
.reviews-bars li{display:grid;grid-template-columns:3.2em 1fr 3em;align-items:center;gap:8px;font-size:.85rem;color:var(--muted)}
.reviews-bars .bar{height:9px;border-radius:999px;background:#ece6d8;overflow:hidden}
.reviews-bars .bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#e3a008,#f2c14e)}
.reviews-bars .bar-v{text-align:right}
.reviews-write{border-top:1px solid var(--line);padding-top:14px}
.reviews-note{margin:0 0 10px;font-size:.9rem;color:var(--muted);line-height:1.6}
.review-form{display:grid;gap:9px}
.review-form-k{margin:0;font-weight:700;color:var(--ink)}
.star-pick{display:flex;gap:2px}
.star-pick button{border:0;background:none;padding:0 2px;font-size:1.7rem;line-height:1;color:#d9d2c3;cursor:pointer;transition:transform .12s,color .12s}
.star-pick button.on{color:#e3a008}
.star-pick button:hover{transform:scale(1.15)}
.review-form input,.review-form textarea{width:100%;box-sizing:border-box;padding:9px 11px;border:1.5px solid var(--line);border-radius:8px;font:inherit;background:#fff;resize:vertical}
.review-form input:focus,.review-form textarea:focus{outline:2px solid var(--well);outline-offset:1px;border-color:var(--well)}
.review-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.review-status:empty{display:none}
.review-status{margin:0;font-size:.85rem;color:#8a3b12}
.reviews-list{display:grid;gap:18px}
.review{padding:0 0 18px;border-bottom:1px solid var(--line)}
.review:last-child{border-bottom:0}
.review header{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.review-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e8f0ec;color:var(--well);font-weight:700}
.review-name{font-weight:600;color:var(--ink)}
.review-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}
.review-head b{color:var(--ink)}
.review-meta{margin:4px 0 8px;font-size:.8rem;color:var(--muted)}
.review-verified{color:#b45309;font-weight:600}
.review-body-text{margin:0;line-height:1.75;color:var(--ink)}

/* Stars beside each book title (Amazon style); they lead to the book's readers' reviews. */
.title-rating{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin:4px 0 8px;font-size:.9rem;color:var(--muted);text-decoration:none}
.title-rating .stars{font-size:1.05rem}
.title-rating b{color:var(--ink);font-weight:700}
.title-rating .title-rating-out{margin-left:-4px}
.title-rating .title-rating-count{color:#0b6e86}
.title-rating:hover .title-rating-count,.title-rating:focus-visible .title-rating-count{text-decoration:underline;color:#b3410e}
/* About page (upright box): the அறிமுகச் சலுகை pill sits in the middle of the box. */
#p-about .supporter-stack .launch-offer{display:table;margin-left:auto!important;margin-right:auto!important}


/* After payment: invite friends from the thank-you notice. */
.pay-notice-share{flex:1 1 100%;display:flex;align-items:center;gap:.6em;flex-wrap:wrap;margin-top:.2em;padding-top:.7em;border-top:1px solid rgba(255,255,255,.25)}
.pay-notice-share[hidden]{display:none}
.pay-notice-share p{flex:1 1 100%}
.pay-notice-more{color:#fff;font-size:.9rem;text-decoration:underline}

/* Share buttons in each network's own colour. */
.share-row{display:flex;flex-wrap:wrap;gap:.45rem}
.share-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:.4rem .85rem;border-radius:999px;border:0;font:600 .9rem/1 system-ui,sans-serif;color:#fff;text-decoration:none;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.share-btn:hover{filter:brightness(1.08)}
.share-btn:disabled{opacity:.7;cursor:progress}
.share-wa{background:#1f9e55}
.share-fb{background:#1877f2}
.share-ig{background:linear-gradient(45deg,#f9a03f,#e1306c 45%,#833ab4)}
.share-x{background:#000}
.share-sc{background:#fffc00;color:#000}
.share-more{background:#fff;color:var(--well);border:1px solid var(--line)}
.share-hint{margin:.4rem 0 0;font-size:.88rem;color:var(--well);min-height:0}
.share-hint:empty{display:none}
.pay-notice .share-hint{color:#fff}

/* Share buttons on each book: a vertical column just outside the white book box, on its right, 5 mm below the title. */
.book{position:relative}
/* Room on the right of the book list for the share column, outside the white book box. */
.books,#book-detail{padding-right:56px;box-sizing:border-box}
@media(max-width:600px){.books,#book-detail{padding-right:48px}}
.book>.book-share{position:absolute;top:0;left:0;visibility:hidden;display:flex;flex-direction:column;align-items:center;gap:.45rem;z-index:3}
.book>.book-share.placed{visibility:visible}
.book-share .bs{width:34px;height:34px;border-radius:50%;border:0;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;padding:0;box-shadow:0 1px 4px rgba(0,0,0,.18);transition:transform .15s}
.book-share .bs:hover{transform:translateX(-2px)}
.book-share .bs:disabled{opacity:.6;cursor:progress}
.book-share .bs svg{width:19px;height:19px}
.bs-wa{background:#1f9e55}.bs-fb{background:#1877f2}.bs-ig{background:linear-gradient(45deg,#f9a03f,#e1306c 45%,#833ab4)}.bs-x{background:#000}.bs-sc{background:#fffc00;color:#fff!important}
.book-share-hint{position:absolute;right:calc(100% + .5rem);top:5.6rem;white-space:nowrap;background:var(--well);color:#fff;font-size:.8rem;padding:.3rem .6rem;border-radius:6px;z-index:5}
.book-share-hint:empty{display:none}

/* The share logos sit in a small vertical "bookmark" box: cream, gold-edged, with a star at each end. */
.book>.book-share{gap:.42rem;padding:.55rem 5px;border-radius:24px;background:linear-gradient(180deg,#fffdf6 0%,#f4eedd 100%);border:1px solid #d9c79c;box-shadow:0 6px 16px rgba(23,77,73,.14),inset 0 0 0 3px #fffdf6,inset 0 0 0 4px rgba(170,118,46,.28)}
.book>.book-share::before,.book>.book-share::after{content:"✦";color:var(--accent);font-size:10px;line-height:1;opacity:.85}
.book>.book-share .bs{width:30px;height:30px}
.book>.book-share .bs svg{width:17px;height:17px}
@media(max-width:600px){.book>.book-share{padding:.45rem 4px}.book>.book-share .bs{width:28px;height:28px}.book>.book-share .bs svg{width:16px;height:16px}}

/* Phones and narrow windows: the share box sits below the payment box, as a horizontal row, centred. */
@media(max-width:740px){
 .books,#book-detail{padding-right:0}
 .book>.book-share{position:relative!important;top:auto!important;left:auto!important;visibility:visible;order:3;flex-direction:row;align-self:center;gap:.5rem;padding:5px .75rem;margin-top:-.2rem}
 .book>.book-share .bs{width:32px;height:32px}
 .book>.book-share .bs svg{width:18px;height:18px}
 .book-share-hint{right:auto;left:50%;top:calc(100% + .4rem);transform:translateX(-50%)}
}

/* Review box: one-click download for members whose download is not on record. */
.review-download{margin:2px 0 8px}
.review-dl-status:empty{display:none}

/* "Edit" on the writer's own comment, and a brief highlight of the form it opens. */
.review-edit{font-size:.8rem;color:var(--well);text-decoration:underline;padding:0;background:none;border:0;cursor:pointer}
.review-form-flash{box-shadow:0 0 0 3px rgba(170,118,46,.45);border-radius:10px;transition:box-shadow .3s}

/* Book title split: main title a little smaller, subtitle 30% smaller than the main title. */
.book .info h3 .t-main{font-size:.85em}
.book .info h3 .t-sub{display:block;font-size:.595em;font-weight:600;line-height:1.35;margin-top:.3em}

/* A saved review: a short note with its stars and "Edit"; the form opens only on Edit. */
.review-mine .review-mine-stars{margin:0 0 10px}
.review-form[hidden],.review-mine[hidden]{display:none!important}
.review-cancel{margin-right:12px}

/* ---- வாங்கிய நூல்கள் (member orders) ---- */
#p-orders,#p-sales{max-width:980px;margin:0 auto}
.orders-title{margin:.4rem 0 1rem}
.orders-sub{font-size:1.05rem;margin:1.6rem 0 .7rem;color:var(--well)}
.orders-wait,.orders-empty{color:var(--muted)}
.order-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:0 0 1rem;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.order-head{display:flex;flex-wrap:wrap;gap:.6rem 2rem;padding:.75rem 1rem;background:#f3efe2;border-bottom:1px solid var(--line);font-size:.86rem}
.order-head>div{display:flex;flex-direction:column;gap:2px}
.order-head .k{font-size:.72rem;color:var(--muted);text-transform:uppercase;letter-spacing:.02em}
.order-head .order-no{margin-left:auto;text-align:right;align-items:flex-end}
.order-body{padding:1rem}
.order-status{margin:0 0 .8rem;font-size:1.15rem;color:var(--well)}
.status-cancelled .order-status,.status-refunded .order-status{color:#b3261e}
.order-steps{list-style:none;display:flex;margin:0 0 1rem;padding:0;counter-reset:s}
.order-steps li{flex:1;position:relative;text-align:center;font-size:.78rem;color:var(--muted);padding-top:22px}
.order-steps li::before{content:"";position:absolute;top:8px;left:-50%;width:100%;height:3px;background:var(--line)}
.order-steps li:first-child::before{display:none}
.order-steps .dot{position:absolute;top:2px;left:50%;transform:translateX(-50%);width:15px;height:15px;border-radius:50%;background:#fff;border:2px solid var(--line);z-index:1}
.order-steps li.done{color:var(--fg)}
.order-steps li.done::before{background:#1f8f4e}
.order-steps li.done .dot{background:#1f8f4e;border-color:#1f8f4e}
.order-steps li.current .dot{box-shadow:0 0 0 4px rgba(31,143,78,.2)}
.order-steps .step-k{display:block;font-weight:600}
.order-steps .step-t{display:block;font-size:.72rem;color:var(--muted)}
.order-track{background:#f7faf8;border:1px solid #d7e7dc;border-radius:10px;padding:.7rem .9rem;margin:0 0 1rem}
.order-track p{margin:0 0 .5rem}
.order-track .k{color:var(--muted)}
.order-track .track-no{letter-spacing:.03em}
.order-hint{display:inline-block;font-size:.82rem;color:var(--muted);margin:.3rem 0 0 .6rem}
p.order-hint{margin:0 0 1rem}
.order-items{display:flex;flex-direction:column;gap:.7rem}
.order-item{display:flex;gap:.8rem;align-items:center}
.order-item img{width:54px;height:80px;object-fit:cover;border-radius:3px;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.order-item-title{font-weight:700;color:var(--well);text-decoration:none}
.order-item-title:hover{text-decoration:underline}
.order-item-meta{display:block;font-size:.85rem;color:var(--muted);margin:2px 0 0}
.order-more{margin-top:.9rem;font-size:.86rem}
.order-more summary{cursor:pointer;color:var(--well)}
.order-more p{margin:.5rem 0 0;line-height:1.6}
.order-receipt{font-size:.82rem;color:var(--well);text-decoration:underline;background:none;border:0;padding:0;cursor:pointer}
@media(max-width:600px){.order-head{gap:.5rem 1.2rem}.order-head .order-no{margin-left:0;text-align:left;align-items:flex-start;flex-basis:100%}.order-steps li{font-size:.68rem}.order-steps .step-t{font-size:.62rem}}

/* ---- விற்பனை மேலாண்மை (owner sales page) ---- */
.sales-bar{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:space-between;align-items:center;margin-bottom:.8rem}
.sales-summary{display:flex;flex-wrap:wrap;gap:1.2rem;font-size:.95rem}
.sales-tools{display:flex;flex-wrap:wrap;gap:.5rem}
.sales-tools input{min-width:220px;padding:.5rem .7rem;border:1px solid var(--line);border-radius:8px;font:inherit}
.sales-filters{margin-bottom:1rem}
.sales-row{display:grid;grid-template-columns:1fr minmax(280px,380px);gap:1rem;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:10px;padding:.9rem 1rem;margin-bottom:.8rem}
.sales-row.status-delivered{border-left-color:#1f8f4e}
.sales-row.status-cancelled,.sales-row.status-refunded{border-left-color:#b3261e;opacity:.85}
.sales-main p{margin:0 0 .35rem;font-size:.9rem;line-height:1.5}
.sales-pill{display:inline-block;margin-left:.4rem;padding:1px 9px;border-radius:999px;background:#e8f1ec;color:#1f5f3a;font-size:.78rem}
.sales-addr{color:var(--muted)}
.sales-edit{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.sales-edit label{display:flex;flex-direction:column;font-size:.75rem;color:var(--muted);gap:2px}
.sales-edit input,.sales-edit select{padding:.4rem .5rem;border:1px solid var(--line);border-radius:6px;font:inherit;font-size:.88rem;color:var(--fg);background:#fff}
.sales-edit .sales-note{grid-column:1/-1}
.sales-edit label[hidden]{display:none}
.sales-actions{grid-column:1/-1;display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}
.sales-msg{font-size:.82rem;color:#1f8f4e}
@media(max-width:760px){.sales-row{grid-template-columns:1fr}}


/* Popup after a new account is created: "check your email". */
.signup-sent{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(20,40,38,.45);backdrop-filter:blur(2px)}
.signup-sent[hidden]{display:none}
.signup-sent-card{position:relative;max-width:440px;width:100%;background:var(--surface);border-radius:18px;padding:1.8rem 1.5rem 1.4rem;text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.25);border-top:5px solid var(--accent);animation:signupPop .25s ease-out}
@keyframes signupPop{from{transform:translateY(12px) scale(.97);opacity:0}to{transform:none;opacity:1}}
.signup-sent-icon{margin:0 auto .6rem}
.signup-sent-card h2{margin:0 0 .6rem;color:var(--well);font-size:1.3rem}
.signup-sent-ta{margin:0 0 .5rem;line-height:1.7}
.signup-sent-email{margin:0 0 .7rem;font-weight:700;color:var(--well);word-break:break-all}
.signup-sent-email:empty{display:none}
.signup-sent-en{margin:0 0 1.1rem;font-size:.85rem;color:var(--muted);line-height:1.5}
.signup-sent-ok{min-width:120px}
.signup-sent-close{position:absolute;top:.5rem;right:.7rem;background:none;border:0;font-size:1.5rem;line-height:1;color:var(--muted);cursor:pointer}
.sales-row{grid-template-columns:minmax(0,1fr) minmax(0,360px)}
.sales-edit{grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-width:0}
.sales-edit label{min-width:0}
.sales-edit input,.sales-edit select{width:100%;min-width:0;box-sizing:border-box}
.sales-main{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){.sales-row{grid-template-columns:minmax(0,1fr)}}




/* Contact page: plain and quiet, no box; only the logo, name, one star and two short blocks. */
#p-contact .contact-plain{background:none;border:0;box-shadow:none;padding:0;width:min(100%,520px);display:flex;flex-direction:column;align-items:center;gap:0;text-align:center}
#p-contact>.eyebrow{font-size:.95rem;letter-spacing:.04em;color:var(--muted)}
.contact-logo{width:84px;height:84px;object-fit:contain;margin-bottom:12px}
.contact-name{margin:0;font-size:1.5rem;font-weight:600;color:var(--well);line-height:1.4}
.contact-star{color:var(--accent);font-size:.8rem;margin:14px 0 22px}
.contact-block{margin-bottom:26px}
.contact-block:last-child{margin-bottom:0}
.contact-k{margin:0 0 6px;font-size:.82rem;color:var(--muted)}
.contact-address{font-style:normal;font-size:1.08rem;line-height:1.75;color:var(--fg)}
.contact-mail{font-size:1.08rem;color:var(--well);text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:2px}
.contact-mail:hover{border-bottom-color:var(--accent)}
@media(max-width:600px){.contact-name{font-size:1.3rem}.contact-address,.contact-mail{font-size:1rem}}

/* Contact: publisher name sits under the address label, a little smaller. */
.contact-name{font-size:1.22rem;margin:0 0 4px}
.contact-star{margin:2px 0 20px}
@media(max-width:600px){.contact-name{font-size:1.12rem}}

/* Popup asking a reader to review a book. */
.review-ask[hidden]{display:none}
.review-ask-cover{display:block;width:104px;height:156px;object-fit:cover;margin:0 auto 12px;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.25)}
.review-ask-stars{color:#e0a526;font-size:1.35rem;letter-spacing:.14em;margin-bottom:6px}
.review-ask-book{color:var(--well)}
.review-ask-go{min-width:170px;margin-top:6px}
.review-ask-later{display:block;margin:12px auto 0;background:none;border:0;color:var(--muted);text-decoration:underline;cursor:pointer;font-size:.92rem}

/* Contact address: extra line breaks on phones only. */
.m-br{display:none}
@media(max-width:600px){.m-br{display:inline}}

/* "Email already registered" popup: the set-password button above OK. */
.signup-sent-setpw{display:block;margin:0 auto 10px}
.signup-sent-setpw[hidden]{display:none}

/* Sales page: saved order details shown as text, with an Edit button. */
.sales-saved{min-width:0;font-size:.9rem}
.sales-saved dl{margin:0 0 .7rem;display:grid;grid-template-columns:auto minmax(0,1fr);gap:.3rem .9rem}
.sales-saved dt{font-size:.8rem;color:var(--muted)}
.sales-saved dd{margin:0;font-weight:500;overflow-wrap:anywhere}

/* Sales page: date and book filters. */
.sales-range{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.7rem;margin-bottom:.8rem}
.sales-range label{display:flex;flex-direction:column;gap:2px;font-size:.78rem;color:var(--muted)}
.sales-range input,.sales-range select{padding:.45rem .55rem;border:1px solid var(--line);border-radius:7px;font:inherit;font-size:.9rem;background:#fff;color:#203332}
@media(max-width:760px){.sales-range label{flex:1 1 42%}.sales-range input,.sales-range select{width:100%;box-sizing:border-box}}
