/*
Theme Name: Bookkad Editorial
Text Domain: bookkad-editorial
Description: Premium editorial book and ideas discovery platform.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

/* This file holds the WordPress theme header (above) plus truly global
 * rules only. Tailwind handles everything else.
 *
 * - Design tokens live in theme.css's @theme block.
 * - Prose + form styles live in presets.css.
 * - Layout, color, typography utilities come from Tailwind v4.
 *
 * Do NOT add component classes here (.btn-primary, .card, etc.). Use
 * Tailwind utilities in templates instead.
 */

html {
	scroll-behavior: smooth;
}


/* Bookkad Forum v2 — photographic editorial cards */
.bookkad-forum-page #forum-header {
  background: #f1eadf !important;
  border-color: #d8cdbd !important;
  box-shadow: none !important;
}

.bookkad-forum-page #forum-navigation a {
  color: #28332e !important;
  background: transparent !important;
  border: 0 !important;
}

.bookkad-forum-page #forum-navigation a:hover,
.bookkad-forum-page #forum-navigation a.home-link {
  color: #fff !important;
  background: #173b32 !important;
}

.bookkad-forum-page #forum-search {
  background: #fbf8f2 !important;
  border-color: #d8cdbd !important;
}

.bookkad-forum-page .notices-panel .notice {
  background: #f3ead9 !important;
  border-color: #d8c29d !important;
  color: #5e5548 !important;
}

.bookkad-forum-page h1.main-title {
  color: #18201d !important;
}

.bookkad-forum-page .title-element {
  background: #173b32 !important;
  color: #fff !important;
  border-radius: 12px 12px 0 0 !important;
}

.bookkad-forum-page .content-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  padding: 14px !important;
  background: #eee7db !important;
  border-color: #d8cdbd !important;
}

.bookkad-forum-page .content-element.forum {
  display: grid !important;
  grid-template-columns: 142px minmax(0,1fr) !important;
  grid-template-rows: auto auto !important;
  gap: 0 18px !important;
  min-height: 205px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #d8cdbd !important;
  border-radius: 12px !important;
  background: #fbf8f2 !important;
  box-shadow: 0 4px 16px rgba(24,32,29,.045) !important;
}

.bookkad-forum-page .content-element.forum:hover {
  transform: translateY(-3px) !important;
  border-color: #b9aa97 !important;
  box-shadow: 0 12px 28px rgba(24,32,29,.10) !important;
}

.bookkad-forum-page .forum-status {
  grid-row: 1 / span 2 !important;
  width: 142px !important;
  height: 100% !important;
  min-height: 205px !important;
  border-radius: 0 !important;
  background-color: #ddd4c5 !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
  color: transparent !important;
  font-size: 0 !important;
  position: relative !important;
}

.bookkad-forum-page .forum-status i {
  display: none !important;
}

.bookkad-forum-page #forum-1 .forum-status {
  background-image: url("https://bookkad.com/wp-content/uploads/2026/09/Bookkad-Forum-General-Book-Discussions.jpg") !important;
}
.bookkad-forum-page #forum-2 .forum-status {
  background-image: url("https://bookkad.com/wp-content/uploads/2026/09/Bookkad-Forum-Fiction.jpg") !important;
}
.bookkad-forum-page #forum-3 .forum-status {
  background-image: url("https://bookkad.com/wp-content/uploads/2026/09/Bookkad-Forum-Non-Fiction.jpg") !important;
}
.bookkad-forum-page #forum-4 .forum-status {
  background-image: url("https://bookkad.com/wp-content/uploads/2026/09/Bookkad-Forum-Personal-Development.jpg") !important;
}
.bookkad-forum-page #forum-5 .forum-status {
  background-image: url("https://bookkad.com/wp-content/uploads/2026/09/Bookkad-Forum-Business-Money.jpg") !important;
}
.bookkad-forum-page #forum-6 .forum-status {
  background-image: url("https://bookkad.com/wp-content/uploads/2026/09/Bookkad-Forum-Philosophy-Ideas.jpg") !important;
}
.bookkad-forum-page #forum-7 .forum-status {
  background-image: url("https://bookkad.com/wp-content/uploads/2026/09/Bookkad-Forum-History-Society.jpg") !important;
}
.bookkad-forum-page #forum-8 .forum-status {
  background-image: url("https://bookkad.com/wp-content/uploads/2026/09/Bookkad-Forum-Science-Technology.jpg") !important;
}
.bookkad-forum-page #forum-9 .forum-status {
  background-image: url("https://bookkad.com/wp-content/uploads/2026/09/Bookkad-Forum-Religion-Spirituality.jpg") !important;
}

.bookkad-forum-page .forum-name {
  align-self: center !important;
  padding: 20px 18px 10px 0 !important;
}

.bookkad-forum-page .forum-title {
  color: #173b32 !important;
  font-family: inherit !important;
  font-size: 19px !important;
  font-weight: 800 !important;
}

.bookkad-forum-page .forum-title:hover {
  color: #c85c43 !important;
}

.bookkad-forum-page .forum-description {
  color: #6f746e !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.bookkad-forum-page .forum-stats {
  color: #a77b39 !important;
  font-size: 11px !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
}

.bookkad-forum-page .forum-lastpost-small {
  grid-column: 2 !important;
  align-self: end !important;
  margin: 0 18px 18px 0 !important;
  padding: 10px 0 0 !important;
  border-left: 0 !important;
  border-top: 1px solid #e0d7ca !important;
  color: #858981 !important;
  font-size: 11px !important;
}

.bookkad-forum-page .forum-lastpost-small a {
  color: #3b5c50 !important;
}

.bookkad-forum-page .forum-poster {
  display: none !important;
}

.bookkad-forum-page #read-unread {
  color: #777b74 !important;
}

.bookkad-forum-page #statistics {
  background: #e8dfd0 !important;
  border-color: #d8cdbd !important;
}

.bookkad-forum-page #statistics .title-element {
  background: transparent !important;
  color: #173b32 !important;
}

.bookkad-forum-page .statistics-element {
  background: rgba(255,255,255,.48) !important;
  border-color: rgba(23,59,50,.10) !important;
}

.bookkad-forum-page .element-number {
  color: #173b32 !important;
}

@media (max-width: 900px) {
  .bookkad-forum-page .content-container {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .bookkad-forum-page .content-element.forum {
    grid-template-columns: 100px minmax(0,1fr) !important;
    min-height: 160px !important;
  }

  .bookkad-forum-page .forum-status {
    width: 100px !important;
    min-height: 160px !important;
  }

  .bookkad-forum-page .forum-name {
    padding: 15px 12px 8px 0 !important;
  }

  .bookkad-forum-page .forum-title {
    font-size: 16px !important;
  }

  .bookkad-forum-page .forum-lastpost-small {
    margin-right: 12px !important;
  }
}


/* Bookkad Forum — editorial community treatment */
.bookkad-forum-page {
  --forum-ink: #18201d;
  --forum-forest: #173b32;
  --forum-coral: #c85c43;
  --forum-gold: #c59b52;
  --forum-paper: #f7f3ea;
  --forum-line: #ddd5c8;
  --forum-muted: #737870;
}

.bookkad-forum-page .forum-intro {
  max-width: 820px;
  padding: 12px 0 22px;
}

.bookkad-forum-page .forum-intro p {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--forum-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.bookkad-forum-page #af-wrapper {
  color: var(--forum-ink);
  font-family: inherit;
  font-size: 15px;
}

.bookkad-forum-page #forum-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 18px;
  border: 1px solid var(--forum-line);
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 8px 28px rgba(24,32,29,.05);
}

.bookkad-forum-page #forum-navigation {
  display: flex;
  align-items: center;
  gap: 3px;
}

.bookkad-forum-page #forum-navigation a {
  color: var(--forum-ink);
  border: 0;
  border-radius: 11px;
  padding: 10px 14px;
  background: transparent;
  font-weight: 700;
  text-decoration: none;
  transition: .18s ease;
}

.bookkad-forum-page #forum-navigation a:hover,
.bookkad-forum-page #forum-navigation a.home-link {
  color: #fff;
  background: var(--forum-forest);
}

.bookkad-forum-page #forum-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  min-width: 220px;
  border: 1px solid var(--forum-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.bookkad-forum-page #forum-search .search-icon {
  color: var(--forum-muted);
  padding-left: 12px;
}

.bookkad-forum-page #forum-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 12px;
  color: var(--forum-ink);
  font: inherit;
}

.bookkad-forum-page #forum-breadcrumbs {
  margin: 0 0 14px;
  color: var(--forum-muted);
  font-size: 13px;
}

.bookkad-forum-page #forum-breadcrumbs a {
  color: var(--forum-forest);
  text-decoration: none;
}

.bookkad-forum-page .notices-panel {
  margin: 0 0 24px;
}

.bookkad-forum-page .notices-panel .notice {
  border: 1px solid #e6c9a9;
  border-radius: 14px;
  background: #fff7e9;
  color: #76563a;
  padding: 13px 16px;
  font-size: 14px;
}

.bookkad-forum-page .notices-panel a {
  color: var(--forum-coral);
  font-weight: 800;
}

.bookkad-forum-page h1.main-title {
  margin: 0 0 14px;
  color: var(--forum-ink);
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.bookkad-forum-page .title-element {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 16px 16px 0 0;
  background: var(--forum-forest);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
}

.bookkad-forum-page .last-post-headline {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.bookkad-forum-page .content-container {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--forum-line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: rgba(255,255,255,.28);
}

.bookkad-forum-page .content-element.forum {
  display: grid;
  grid-template-columns: 62px minmax(0,1fr) minmax(220px, .62fr);
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 18px 18px;
  border: 1px solid var(--forum-line);
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 5px 18px rgba(24,32,29,.035);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bookkad-forum-page .content-element.forum:hover {
  transform: translateY(-2px);
  border-color: #c9bca9;
  box-shadow: 0 12px 28px rgba(24,32,29,.08);
}

.bookkad-forum-page .forum-status {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #efe8da;
  color: var(--forum-forest);
  font-size: 20px;
}

.bookkad-forum-page .forum-status.unread {
  background: #e8efe9;
  color: var(--forum-forest);
}

.bookkad-forum-page .forum-name {
  min-width: 0;
}

.bookkad-forum-page .forum-title {
  display: block;
  color: var(--forum-forest);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.bookkad-forum-page .forum-title:hover {
  color: var(--forum-coral);
}

.bookkad-forum-page .forum-description {
  display: block;
  margin-top: 5px;
  color: var(--forum-muted);
  font-size: 13px;
  line-height: 1.5;
}

.bookkad-forum-page .forum-stats {
  display: block;
  margin-top: 8px;
  color: var(--forum-gold);
  font-size: 12px;
  font-weight: 800;
}

.bookkad-forum-page .forum-lastpost-small {
  display: block;
  padding-left: 18px;
  border-left: 1px solid var(--forum-line);
  color: var(--forum-muted);
  font-size: 12px;
  line-height: 1.55;
}

.bookkad-forum-page .forum-lastpost-small a {
  color: var(--forum-forest);
  font-weight: 700;
  text-decoration: none;
}

.bookkad-forum-page .forum-poster {
  display: none;
}

.bookkad-forum-page #read-unread {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 16px 4px 26px;
  color: var(--forum-muted);
  font-size: 12px;
}

.bookkad-forum-page #read-unread .indicator {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
}

.bookkad-forum-page #read-unread .indicator.unread {
  background: var(--forum-coral);
}

.bookkad-forum-page #read-unread .indicator.read {
  background: #c9c3b8;
}

.bookkad-forum-page #read-unread a {
  color: var(--forum-forest);
  font-weight: 700;
  text-decoration: none;
}

.bookkad-forum-page #statistics {
  overflow: hidden;
  border: 1px solid var(--forum-line);
  border-radius: 16px;
  background: #efe8da;
}

.bookkad-forum-page #statistics .title-element {
  border-radius: 0;
  background: transparent;
  color: var(--forum-forest);
  padding: 14px 18px;
  min-height: auto;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.bookkad-forum-page #statistics-body {
  padding: 0 18px 18px;
}

.bookkad-forum-page #statistics-elements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.bookkad-forum-page .statistics-element {
  padding: 14px;
  border: 1px solid rgba(23,59,50,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.55);
  text-align: center;
}

.bookkad-forum-page .element-number {
  color: var(--forum-forest);
  font-size: 22px;
  font-weight: 800;
}

.bookkad-forum-page .element-name {
  margin-top: 3px;
  color: var(--forum-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.bookkad-forum-page #statistics-online-users {
  margin-top: 14px;
  color: var(--forum-muted);
  font-size: 12px;
}

.bookkad-forum-page #forum-navigation-mobile {
  display: none;
}

@media (max-width: 800px) {
  .bookkad-forum-page #forum-header {
    flex-wrap: wrap;
  }

  .bookkad-forum-page #forum-navigation {
    width: 100%;
    overflow-x: auto;
  }

  .bookkad-forum-page #forum-search {
    width: 100%;
    margin-left: 0;
  }

  .bookkad-forum-page .content-element.forum {
    grid-template-columns: 50px minmax(0,1fr);
    gap: 12px;
    padding: 15px;
  }

  .bookkad-forum-page .forum-status {
    width: 44px;
    height: 44px;
  }

  .bookkad-forum-page .forum-lastpost-small {
    grid-column: 2;
    padding-left: 0;
    padding-top: 10px;
    border-left: 0;
    border-top: 1px solid var(--forum-line);
  }

  .bookkad-forum-page #statistics-elements {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .bookkad-forum-page .forum-intro h1 {
    font-size: 3rem;
  }

  .bookkad-forum-page .title-element {
    padding: 0 14px;
  }

  .bookkad-forum-page .last-post-headline {
    display: none;
  }

  .bookkad-forum-page .content-container {
    padding: 7px;
  }
}

/* Bookkad topic thumbnails — applied to every future discussion row. */
.bookkad-forum-page .content-element.topic {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 16px !important;
  min-height: 112px !important;
  padding: 12px !important;
  border: 1px solid var(--forum-line) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.86) !important;
  box-shadow: 0 5px 18px rgba(24,32,29,.035) !important;
  overflow: hidden !important;
}

.bookkad-forum-page .content-element.topic:hover {
  border-color: #c9bca9 !important;
  box-shadow: 0 12px 28px rgba(24,32,29,.08) !important;
  transform: translateY(-2px) !important;
}

.bookkad-forum-page .bookkad-topic-thumb {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 88px !important;
  min-height: 112px !important;
  height: 100% !important;
  overflow: hidden !important;
  border-radius: 9px !important;
  background: #eee8dc !important;
}

.bookkad-forum-page .bookkad-topic-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 112px !important;
  object-fit: cover !important;
}

.bookkad-forum-page .topic-status {
  display: none !important;
}

.bookkad-forum-page .topic-name {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  align-self: center !important;
}

.bookkad-forum-page .topic-name > a:first-child {
  display: block !important;
  color: var(--forum-forest) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

.bookkad-forum-page .topic-name > a:first-child:hover {
  color: var(--forum-coral) !important;
}

.bookkad-forum-page .topic-name small {
  display: block !important;
  margin-top: 6px !important;
  color: var(--forum-muted) !important;
  font-size: 12px !important;
}

.bookkad-forum-page .topic-stats {
  color: var(--forum-gold) !important;
  font-weight: 800 !important;
}

.bookkad-forum-page .topic-lastpost-small {
  align-self: center !important;
  padding-left: 16px !important;
  border-left: 1px solid var(--forum-line) !important;
  color: var(--forum-muted) !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.bookkad-forum-page .topic-lastpost-small a {
  color: var(--forum-forest) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.bookkad-forum-page .topic-poster {
  display: none !important;
}

@media (max-width: 800px) {
  .bookkad-forum-page .content-element.topic {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 12px !important;
    min-height: 96px !important;
  }

  .bookkad-forum-page .bookkad-topic-thumb {
    width: 72px !important;
    min-height: 96px !important;
  }

  .bookkad-forum-page .bookkad-topic-thumb img {
    min-height: 96px !important;
  }

  .bookkad-forum-page .topic-lastpost-small {
    grid-column: 2 !important;
    padding-left: 0 !important;
    padding-top: 9px !important;
    border-left: 0 !important;
    border-top: 1px solid var(--forum-line) !important;
  }
}

@media (max-width: 520px) {
  .bookkad-forum-page .content-element.topic {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 9px !important;
  }

  .bookkad-forum-page .bookkad-topic-thumb {
    width: 64px !important;
    min-height: 88px !important;
  }

  .bookkad-forum-page .bookkad-topic-thumb img {
    min-height: 88px !important;
  }

  .bookkad-forum-page .topic-name > a:first-child {
    font-size: 15px !important;
  }
}
.bookkad-mobile-menu-toggle, .bookkad-mobile-menu { display: none; }

/* Bookkad mobile refinement — deliberate phone composition. */
@media (max-width: 767px) {
  /* Mobile header: compact brand bar + intentional menu, not a desktop nav squeezed into a phone. */
  header .bookkad-shell {
    height: 60px !important;
    gap: 8px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  header .bookkad-shell > a:first-child .display {
    font-size: 1.55rem !important;
  }

  header .nav-search {
    width: 36px !important;
    height: 36px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
  }

  header .nav-join { display: none !important; }

  .bookkad-mobile-menu-toggle {
    display: grid !important;
    position: absolute !important;
    right: 58px !important;
    top: 12px !important;
    width: 36px !important;
    height: 36px !important;
    place-items: center !important;
    border: 1px solid #d9d1c4 !important;
    border-radius: 50% !important;
    background: #fbf8f2 !important;
    color: #173b32 !important;
    cursor: pointer !important;
  }

  .bookkad-menu-lines {
    display: grid !important;
    gap: 4px !important;
    width: 15px !important;
  }

  .bookkad-menu-lines i {
    display: block !important;
    height: 1.5px !important;
    background: currentColor !important;
  }

  .bookkad-mobile-menu {
    display: none !important;
    border-top: 1px solid #d9d1c4 !important;
    background: #f7f3ea !important;
  }

  .bookkad-mobile-menu.is-open {
    display: block !important;
  }

  .bookkad-mobile-menu-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    padding: 8px 16px 14px !important;
  }

  .mobile-menu-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 13px 5px !important;
    border-bottom: 1px solid #d9d1c4 !important;
    color: #18201d !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
  }

  .mobile-menu-link.is-active { color: #c85c43 !important; }

  header > nav.lg\\:hidden { display: none !important; }

  html { overflow-x: hidden; }
  body { overflow-x: hidden; }
  body { overflow-x: hidden; }

  header .bookkad-shell {
    height: 60px !important;
    gap: 8px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  header .display.text-\[2rem\] { font-size: 1.55rem !important; }

  header .nav-search {
    width: 38px !important;
    height: 38px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
  }

  header .nav-join { display: none !important; }

  header nav.lg\\:hidden {
    display: block !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  header nav.lg\\:hidden::-webkit-scrollbar { display: none !important; }

  header nav.lg\\:hidden .bookkad-shell {
    height: auto !important;
    min-width: max-content !important;
    padding: 6px 16px !important;
    gap: 2px !important;
  }

  header nav.lg\\:hidden .nav-link {
    padding: 7px 10px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    border-radius: 9px !important;
  }

  main > section .bookkad-shell {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }

  main > section:first-child .bookkad-shell {
    min-height: 0 !important;
    padding-top: 56px !important;
    padding-bottom: 48px !important;
  }

  main > section:first-child h1 {
    margin-top: 14px !important;
    font-size: clamp(3.25rem, 16vw, 4.75rem) !important;
    line-height: .9 !important;
    letter-spacing: -.045em !important;
  }

  main > section:first-child p { max-width: none !important; }

  main > section:first-child form {
    margin-top: 24px !important;
    padding: 6px !important;
    gap: 4px !important;
  }

  main > section:first-child form input {
    min-width: 0 !important;
    padding: 11px 13px !important;
    font-size: 13px !important;
  }

  main > section:first-child form button {
    padding: 11px 15px !important;
    white-space: nowrap !important;
  }

  main > section:first-child .pill {
    padding: 7px 10px !important;
    font-size: 11px !important;
  }

  main h2.display {
    font-size: clamp(2rem, 9vw, 2.7rem) !important;
    line-height: .98 !important;
  }

  main h3.display {
    font-size: 1.7rem !important;
  }

  .grid.sm\\:grid-cols-2.lg\\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 20px 14px !important;
  }

  .grid.sm\\:grid-cols-2.lg\\:grid-cols-4 .book-cover {
    aspect-ratio: 2 / 3 !important;
    height: auto !important;
  }

  .grid.sm\\:grid-cols-2.lg\\:grid-cols-4 article h3 {
    font-size: 15px !important;
    line-height: 1.3 !important;
  }

  .grid.sm\\:grid-cols-2.lg\\:grid-cols-4 article p {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .grid.sm\\:grid-cols-2.lg\\:grid-cols-4 article > a:last-child {
    font-size: 11px !important;
  }

  main .md\\:grid-cols-2.lg\\:grid-cols-3 {
    grid-template-columns: 1fr !important;
  }

  main .grid.grid-cols-2.gap-x-8 {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  main .grid.grid-cols-2.gap-x-8 a {
    padding: 12px 2px !important;
  }

  main .md\\:grid-cols-\\[180px_1fr\\] {
    grid-template-columns: 1fr !important;
    padding: 18px !important;
    gap: 20px !important;
  }

  main .md\\:grid-cols-\\[180px_1fr\\] .book-cover {
    width: min(68vw, 220px) !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto !important;
  }

  main .lg\\:grid-cols-\\[1fr_1fr\\] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  main .soft-card.rounded-3xl,
  main .rounded-3xl.border {
    padding: 22px !important;
    border-radius: 20px !important;
  }

  #newsletter .bookkad-shell {
    padding-top: 46px !important;
    padding-bottom: 46px !important;
  }

  #newsletter h2 { font-size: 2.5rem !important; }

  #newsletter iframe {
    height: 500px !important;
    min-height: 500px !important;
  }

  footer { margin-top: 56px !important; }

  footer .bookkad-shell {
    padding-top: 42px !important;
    padding-bottom: 30px !important;
  }

  footer .grid.md\\:grid-cols-\\[1.4fr_1fr_1fr\\] {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px 20px !important;
  }

  footer .grid.md\\:grid-cols-\\[1.4fr_1fr_1fr\\] > div:first-child {
    grid-column: 1 / -1 !important;
  }

  footer .display.text-4xl { font-size: 2rem !important; }
}

@media (max-width: 420px) {
  header .bookkad-shell {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  header .display.text-\[2rem\] { font-size: 1.4rem !important; }

  main > section:first-child h1 {
    font-size: clamp(3rem, 15vw, 4rem) !important;
  }

  main > section .bookkad-shell {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .grid.sm\\:grid-cols-2.lg\\:grid-cols-4 {
    gap: 18px 12px !important;
  }

  .grid.sm\\:grid-cols-2.lg\\:grid-cols-4 article h3 {
    font-size: 14px !important;
  }

  #newsletter iframe {
    height: 470px !important;
    min-height: 470px !important;
  }

  footer .grid.md\\:grid-cols-\\[1.4fr_1fr_1fr\\] {
    grid-template-columns: 1fr !important;
  }

  footer .grid.md\\:grid-cols-\\[1.4fr_1fr_1fr\\] > div:first-child {
    grid-column: auto !important;
  }
}

