:root{
  --ntd-bg:#f8f0dd;--ntd-card:#fff;--ntd-text:#191511;--ntd-muted:#6f675c;
  --ntd-gold:#d7a43a;--ntd-gold2:#f2d589;--ntd-border:#e8dcc2;
  --ntd-shadow:0 18px 55px rgba(42,30,14,.08);--ntd-columns:5
}
.ntd-front-page-shell{width:100vw;max-width:none;margin-left:calc(50% - 50vw);background:var(--ntd-bg);overflow-x:hidden}
.ntd-home{width:min(calc(100% - 48px),1360px);max-width:none;margin-inline:auto;padding:30px 0 76px;color:var(--ntd-text)}
.ntd-home a{text-decoration:none}.ntd-section{margin:38px 0}.ntd-section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:16px}
.ntd-section-head h2{font-size:30px;line-height:1.1;margin:0;color:var(--ntd-text);font-family:Georgia,'Times New Roman',serif}.ntd-view-all{font:700 13px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#8b6416;white-space:nowrap}.ntd-view-all span{font-size:18px;vertical-align:-1px}

/* Featured carousel */
.ntd-hero-carousel{position:relative;overflow:hidden;border-radius:26px;background:linear-gradient(135deg,#17130f,#2f2417 61%,#6b4c1e);box-shadow:var(--ntd-shadow);min-height:470px}
.ntd-hero-carousel:after{content:"";position:absolute;right:-7%;top:-55%;width:52%;height:210%;background:radial-gradient(circle,rgba(239,197,95,.22),transparent 66%);pointer-events:none}
.ntd-hero-slide{display:none;grid-template-columns:minmax(0,1.12fr) minmax(300px,.72fr);gap:46px;align-items:center;min-height:470px;padding:42px 56px 58px;position:relative;z-index:2}.ntd-hero-slide.is-active{display:grid;animation:ntdFade .28s ease both}
@keyframes ntdFade{from{opacity:.2;transform:translateY(4px)}to{opacity:1;transform:none}}
.ntd-hero-copy{min-width:0}.ntd-kicker{font:800 12px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:.22em;color:var(--ntd-gold2)}
.ntd-hero-slide h1{font-family:Georgia,'Times New Roman',serif;color:#fff8e9;font-size:clamp(43px,4.9vw,70px);line-height:.99;margin:17px 0 13px;max-width:760px}.ntd-byline,.ntd-byline a{color:#ecdcb9}.ntd-byline{margin:0 0 20px;font-size:15px}.ntd-hero-description{color:#eee4d1;font-size:17px;line-height:1.62;max-width:710px;margin:0}.ntd-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.ntd-primary-button,.ntd-secondary-button{display:inline-flex;align-items:center;justify-content:center;padding:13px 20px;border-radius:10px;font-weight:800;transition:.16s ease}.ntd-primary-button{background:var(--ntd-gold);color:#17110a}.ntd-primary-button:hover{transform:translateY(-1px);filter:brightness(1.04)}.ntd-secondary-button{border:1px solid rgba(246,220,157,.55);color:#f8e6bb;background:rgba(0,0,0,.08)}.ntd-secondary-button:hover{background:rgba(255,255,255,.07)}
.ntd-hero-art{display:flex;justify-content:center;align-items:center;position:relative;min-height:365px}.ntd-hero-cover{position:relative;z-index:3}.ntd-hero-cover img{display:block;width:min(290px,100%);max-height:430px;object-fit:cover;border-radius:10px;box-shadow:0 28px 70px rgba(0,0,0,.44);transform:rotate(1.5deg)}
.ntd-hero-cover-stack{position:absolute;inset:0;z-index:1;pointer-events:none}.ntd-hero-cover-stack img{position:absolute;width:210px;height:315px;object-fit:cover;border-radius:9px;box-shadow:0 20px 52px rgba(0,0,0,.3);opacity:.52}.ntd-hero-cover-stack img:first-child{right:1%;top:11%;transform:rotate(9deg)}.ntd-hero-cover-stack img:last-child{left:0;top:18%;transform:rotate(-9deg);opacity:.4}
.ntd-hero-controls{position:absolute;left:56px;bottom:22px;z-index:5;display:flex;align-items:center;gap:9px}.ntd-hero-arrow,.ntd-hero-pause,.ntd-hero-dot{border:0;cursor:pointer}.ntd-hero-arrow,.ntd-hero-pause{width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff1ce;font-weight:800}.ntd-hero-arrow:hover,.ntd-hero-pause:hover{background:rgba(255,255,255,.22)}.ntd-hero-dots{display:flex;gap:7px}.ntd-hero-dot{width:28px;height:3px;border-radius:99px;background:rgba(255,255,255,.28);padding:0}.ntd-hero-dot.is-active{background:#f4dda2}.ntd-hero-pause.is-paused{background:#f4dda2;color:#17130f}

/* Book rails */
.ntd-book-row{display:grid;grid-template-columns:repeat(var(--ntd-columns),minmax(0,1fr));gap:20px}.ntd-book-card{min-width:0;position:relative}.ntd-cover-wrap{display:block;position:relative;border-radius:12px;overflow:hidden;background:#ddd3c0;aspect-ratio:2/3;box-shadow:0 12px 28px rgba(35,23,10,.11)}.ntd-cover-wrap img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .18s ease}.ntd-book-card:hover .ntd-cover-wrap img{transform:scale(1.025)}.ntd-badges{position:absolute;top:9px;left:9px;display:flex;gap:6px;flex-wrap:wrap}.ntd-badge{font:800 10px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;padding:6px 8px;border-radius:999px;background:#fff;color:#1d1710}.ntd-badge.is-exclusive{background:#f0c95e}.ntd-badge.is-subscription{background:#18191f;color:#f2d17b}.ntd-card-copy{padding:10px 1px}.ntd-card-copy h3{font-size:16px;line-height:1.22;margin:0 0 5px}.ntd-card-copy h3 a{color:var(--ntd-text)}.ntd-card-author,.ntd-card-category{margin:2px 0;color:var(--ntd-muted);font-size:12.5px;line-height:1.35}.ntd-card-bottom{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:6px;font-size:12.5px}.ntd-price{font-weight:800;color:var(--ntd-text)}.ntd-rating{color:#9a711e}.ntd-rating small{color:var(--ntd-muted)}

/* Category collection cards */
.ntd-category-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.ntd-category-card{position:relative;display:grid;grid-template-columns:68px 1fr 18px;gap:14px;align-items:center;min-height:102px;border:1px solid rgba(100,74,31,.12);border-radius:18px;padding:12px 15px;color:#231d16;box-shadow:0 9px 26px rgba(42,30,14,.05);overflow:hidden;transition:.16s ease}.ntd-category-card:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(42,30,14,.09)}.ntd-category-tone-1{background:#f7e8ec}.ntd-category-tone-2{background:#e8f0fb}.ntd-category-tone-3{background:#edf5ec}.ntd-category-tone-4{background:#fbf0de}.ntd-category-tone-5{background:#eee9fa}.ntd-category-tone-6{background:#e8f5f1}.ntd-category-art{width:68px;height:78px;border-radius:11px;overflow:hidden;background:#ddd;box-shadow:0 5px 14px rgba(0,0,0,.12)}.ntd-category-art img{width:100%;height:100%;object-fit:cover}.ntd-category-copy{min-width:0}.ntd-category-copy strong{display:block;font:700 17px/1.2 Georgia,'Times New Roman',serif}.ntd-category-copy small{display:block;color:#746b5d;margin-top:6px}.ntd-category-arrow{font-size:26px;color:#8e711f}

.ntd-series-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.ntd-series-card{display:grid;grid-template-columns:76px 1fr;gap:13px;align-items:center;background:var(--ntd-card);border:1px solid var(--ntd-border);border-radius:16px;padding:12px;color:var(--ntd-text);box-shadow:0 9px 28px rgba(42,30,14,.05);transition:.16s ease}.ntd-series-card:hover{transform:translateY(-2px)}.ntd-series-cover{width:76px;height:112px;overflow:hidden;border-radius:8px;background:#ddd}.ntd-series-cover img{width:100%;height:100%;object-fit:cover}.ntd-series-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.ntd-series-copy strong{font-size:16px;line-height:1.2}.ntd-series-copy small{color:var(--ntd-muted)}
.ntd-author-row{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:18px}.ntd-author-card{text-align:center;color:var(--ntd-text);min-width:0}.ntd-author-avatar{width:96px;height:96px;border-radius:50%;overflow:hidden;margin:0 auto 9px;display:flex;align-items:center;justify-content:center;background:#1a1815;color:#f1d27e;font:700 30px Georgia,serif;border:3px solid #e1bd63;box-shadow:0 7px 22px rgba(40,29,13,.12)}.ntd-author-avatar img{width:100%;height:100%;object-fit:cover}.ntd-author-card strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ntd-author-card small{display:block;font-size:11.5px;color:var(--ntd-muted);margin-top:3px}
.ntd-cover-placeholder{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#6b6256;background:#e6dcc8}.ntd-empty{padding:30px;border:1px dashed var(--ntd-border);border-radius:14px}

/* Dark mode */
html.nt-theme-dark{--ntd-bg:#0f1015;--ntd-card:#1b1c24;--ntd-text:#f6f0e6;--ntd-muted:#b9b1a4;--ntd-border:#30323d;--ntd-shadow:none}.nt-theme-dark .ntd-front-page-shell,.nt-theme-dark .ntd-home{background:var(--ntd-bg)}.nt-theme-dark .ntd-hero-carousel{background:linear-gradient(135deg,#111218,#1c1a18 58%,#4d391a)}.nt-theme-dark .ntd-series-card{background:#1b1c24;border-color:#30323d}.nt-theme-dark .ntd-cover-wrap{background:#262832}.nt-theme-dark .ntd-badge.is-subscription{background:#efcc73;color:#17130e}.nt-theme-dark .ntd-view-all{color:#e6c36b}.nt-theme-dark .ntd-category-card{color:#f5efe5;border-color:#343642}.nt-theme-dark .ntd-category-tone-1{background:#272027}.nt-theme-dark .ntd-category-tone-2{background:#202731}.nt-theme-dark .ntd-category-tone-3{background:#202a24}.nt-theme-dark .ntd-category-tone-4{background:#2d271e}.nt-theme-dark .ntd-category-tone-5{background:#272233}.nt-theme-dark .ntd-category-tone-6{background:#202d2b}.nt-theme-dark .ntd-category-copy small{color:#bdb4a6}.nt-theme-dark .ntd-category-arrow{color:#e3bd62}

@media(max-width:1180px){.ntd-home{width:min(calc(100% - 36px),1120px)}.ntd-book-row{grid-template-columns:repeat(4,minmax(0,1fr))}.ntd-author-row{grid-template-columns:repeat(6,minmax(0,1fr))}.ntd-hero-slide{padding:40px 42px 56px}.ntd-hero-controls{left:42px}}
@media(max-width:960px){.ntd-book-row,.ntd-category-row,.ntd-series-row{grid-template-columns:repeat(3,minmax(0,1fr))}.ntd-author-row{grid-template-columns:repeat(4,minmax(0,1fr))}.ntd-hero-slide{grid-template-columns:1fr .7fr;gap:28px}.ntd-hero-cover-stack{display:none}}
@media(max-width:760px){.ntd-home{width:min(calc(100% - 28px),720px);padding:20px 0 50px}.ntd-hero-carousel{min-height:0;border-radius:20px}.ntd-hero-slide{grid-template-columns:1fr;min-height:0;padding:28px 24px 62px}.ntd-hero-art{order:-1;min-height:250px}.ntd-hero-cover img{width:170px;max-height:255px;transform:none}.ntd-hero-slide h1{font-size:40px}.ntd-book-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.ntd-category-row,.ntd-series-row{grid-template-columns:1fr 1fr}.ntd-author-row{grid-template-columns:repeat(3,minmax(0,1fr))}.ntd-section-head h2{font-size:27px}.ntd-hero-controls{left:24px;bottom:19px}}
@media(max-width:520px){.ntd-category-row,.ntd-series-row{grid-template-columns:1fr}.ntd-author-row{grid-template-columns:repeat(2,minmax(0,1fr))}.ntd-hero-slide h1{font-size:36px}.ntd-section-head{align-items:center}.ntd-view-all{font-size:12px}.ntd-category-card{min-height:94px}.ntd-category-art{width:60px;height:70px}}


/* v0.1.4 — exclusive titles use a premium wrapper instead of covering the art. */
.ntd-book-card.is-exclusive{
  position:relative;
  padding:9px;
  border:2px solid #d9a72e;
  border-radius:17px;
  background:linear-gradient(180deg,rgba(255,246,211,.62),rgba(255,253,248,.28));
  box-shadow:
    0 0 0 1px rgba(248,204,79,.30),
    0 0 24px rgba(241,185,43,.32),
    0 16px 36px rgba(70,47,8,.10);
}
.ntd-book-card.is-exclusive::before{
  content:"⚡ EXCLUSIVE";
  position:absolute;
  z-index:5;
  top:-12px;
  left:13px;
  padding:5px 9px;
  border-radius:999px;
  border:1px solid #c58f16;
  background:#f4c84e;
  color:#171109;
  font:900 9px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.10em;
  box-shadow:0 4px 12px rgba(96,64,0,.18);
}
.ntd-book-card.is-exclusive .ntd-cover-wrap{
  border:none;
  box-shadow:0 10px 28px rgba(119,78,4,.15);
}
.ntd-category-copy strong{
  margin:0;
}
.nt-theme-dark .ntd-book-card.is-exclusive{
  background:linear-gradient(180deg,rgba(95,72,20,.30),rgba(27,29,37,.88));
  border-color:#e0b23e;
  box-shadow:
    0 0 0 1px rgba(255,215,91,.24),
    0 0 26px rgba(224,178,62,.28);
}

/* v0.1.5 — uniform book-card geometry and fixed price baseline.
 * Exclusive treatment is visual only and no longer changes the card box model. */

/* v0.1.6 — removed the inner exclusive cover stroke; keep only the outer gold frame. */
.ntd-book-row{align-items:stretch}
.ntd-book-card{
  display:flex;
  flex-direction:column;
  height:100%;
  box-sizing:border-box;
}
.ntd-card-copy{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  min-height:0;
}
.ntd-card-bottom{
  margin-top:auto;
  padding-top:8px;
}
.ntd-book-card.is-exclusive{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.ntd-book-card.is-exclusive::after{
  content:"";
  position:absolute;
  pointer-events:none;
  z-index:1;
  inset:-9px;
  border:2px solid #d9a72e;
  border-radius:18px;
  box-shadow:
    0 0 0 1px rgba(248,204,79,.30),
    0 0 24px rgba(241,185,43,.32),
    0 16px 36px rgba(70,47,8,.10);
}
.ntd-book-card.is-exclusive::before{content:none}
.ntd-book-card.is-exclusive .ntd-cover-wrap,
.ntd-book-card.is-exclusive .ntd-card-copy{position:relative;z-index:2}
.nt-theme-dark .ntd-book-card.is-exclusive{
  background:transparent;
  border-color:transparent;
  box-shadow:none;
}
.nt-theme-dark .ntd-book-card.is-exclusive::after{
  border-color:#e0b23e;
  box-shadow:
    0 0 0 1px rgba(255,215,91,.24),
    0 0 26px rgba(224,178,62,.28);
}

/* v0.1.7 — exclusive badge moved out of overlay mode so it never covers artwork. */
.ntd-book-card.is-exclusive{
  padding-top:8px;
}
.ntd-book-card.is-exclusive .ntd-cover-wrap,
.ntd-book-card.is-exclusive .ntd-card-copy,
.ntd-book-card.is-exclusive .ntd-exclusive-head{position:relative;z-index:2}
.ntd-exclusive-head{
  display:flex;
  align-items:center;
  padding:0 10px 8px;
}
.ntd-exclusive-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid #c58f16;
  background:#f4c84e;
  color:#171109;
  font:900 9px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.10em;
  box-shadow:0 4px 12px rgba(96,64,0,.18);
  text-transform:uppercase;
}
.nt-theme-dark .ntd-exclusive-pill{
  border-color:#d7ab39;
  background:#e4b844;
  color:#171109;
}

/* v0.1.8 — fully uniform cover + metadata grid.
 * Cover art is never used as a badge surface. All status labels live below the cover. */
.ntd-book-card.is-exclusive{padding-top:0}
.ntd-exclusive-head{display:none!important}
.ntd-cover-wrap .ntd-badges{display:none!important}
.ntd-card-copy{
  padding:10px 1px 0;
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  min-height:0;
}
.ntd-card-copy h3{
  height:2.44em;
  min-height:2.44em;
  margin:0 0 5px;
  line-height:1.22;
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.ntd-card-author,
.ntd-card-category{
  height:1.35em;
  min-height:1.35em;
  margin:2px 0;
  line-height:1.35;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.ntd-card-status{
  display:flex;
  align-items:center;
  gap:6px;
  height:28px;
  min-height:28px;
  margin-top:5px;
  overflow:hidden;
}
.ntd-exclusive-pill,
.ntd-status-pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:21px;
  padding:5px 9px;
  border-radius:999px;
  font:900 9px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}
.ntd-exclusive-pill{
  border:1px solid #c58f16;
  background:#f4c84e;
  color:#171109;
  box-shadow:0 3px 9px rgba(96,64,0,.14);
}
.ntd-status-pill.is-subscription{
  border:1px solid #25262d;
  background:#18191f;
  color:#f2d17b;
}
.ntd-card-bottom{
  margin-top:auto;
  padding-top:8px;
  min-height:29px;
}
.ntd-book-card.is-exclusive .ntd-cover-wrap,
.ntd-book-card.is-exclusive .ntd-card-copy{position:relative;z-index:2}
.nt-theme-dark .ntd-exclusive-pill{
  border-color:#d7ab39;
  background:#e4b844;
  color:#171109;
}
.nt-theme-dark .ntd-status-pill.is-subscription{
  border-color:#4a4c56;
  background:#25262d;
  color:#f2d17b;
}


/* v0.1.14 — Audiobook and Magazine discovery rails */
.ntd-format-card .ntd-cover-wrap{position:relative}.ntd-format-pill{position:absolute;left:9px;top:9px;padding:5px 8px;border-radius:999px;background:#111;color:#fff;font:800 9px/1 Arial,sans-serif;letter-spacing:.08em;box-shadow:0 2px 10px rgba(0,0,0,.2)}.nt-theme-dark .ntd-format-pill{background:#e6c36b;color:#17130e}


/* v0.1.16 — keep Wishlist available on Discovery cards without covering cover art. */
.ntd-card-status .nt-wishlist-button--card{
  margin-left:auto!important;
  flex:0 0 32px;
  align-self:center!important;
}
.ntd-card-status{
  min-height:34px;
  height:34px;
}
