/* ==========================================================
   Ebook Explorer — Modern Warm Redesign
   Clean, readable directory with refined earth-tone palette
   ========================================================== */

/* --- Custom Properties --- */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-alt: #f9f7f3;
  --border: #e2dbd0;
  --border-light: #ece7df;
  --text: #2c2216;
  --text-secondary: #5e5044;
  --text-muted: #8a7e74;
  --primary: #8b6914;
  --primary-hover: #6d520f;
  --accent: #c4920a;
  --bestseller: #b85c1e;
  --nav-bg: #3d2e1f;
  --nav-text: #ede5d8;
  --nav-hover: #daa520;
  --cta: #a0522d;
  --cta-hover: #7a3e22;
  --row-hover: #f3efe8;
  --focus-ring: rgba(139,105,20,0.15);
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, td, th {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

img { border: 0; max-width: 100%; height: auto; }
form { margin: 0; }

/* Placeholder text */
::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
  font-style: italic;
}

/* Selection */
::selection {
  background: rgba(139,105,20,0.15);
  color: var(--text);
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

p {
  margin: 0 0 16px 0;
}

/* --- Force all fixed-width tables to be fluid --- */
table[width="768"],
table[width="760"] {
  width: 100% !important;
  max-width: 960px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

table[width="100%"] {
  width: 100% !important;
}

/* ==========================================================
   LINKS
   ========================================================== */
a:link, a:visited {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover, a:focus {
  color: var(--primary-hover);
  border-bottom-color: var(--primary);
}

a:active {
  color: var(--primary-hover);
}

/* Book title links — prominent */
a.list:link, a.list:visited {
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

a.list:hover, a.list:focus {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Pagination links */
a.pagenav:link, a.pagenav:visited {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  padding: 3px 6px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

a.pagenav:hover, a.pagenav:focus {
  background: var(--surface-alt);
  color: var(--primary-hover);
}

/* Footer links */
a.footer:link, a.footer:visited {
  color: var(--text-muted);
  font-size: 13px;
  border-bottom: 1px solid transparent;
}

a.footer:hover, a.footer:focus {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Footer nav links */
a.menubarheader, a.menubarheader:link, a.menubarheader:visited {
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
  transition: color 0.2s, border-color 0.2s;
}

a.menubarheader:hover, a.menubarheader:focus {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Subcategory links */
.subcategory a:link, .subcategory a:visited {
  color: var(--primary);
  font-weight: 500;
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.subcategory a:hover, .subcategory a:focus {
  color: var(--primary-hover);
  border-bottom-color: var(--primary);
}

/* ==========================================================
   HEADER / LOGO AREA
   Override table+background-image layout
   ========================================================== */
/* Kill background images on header table cells */
td[background*="top_left_bg"] {
  background: var(--surface) !important;
  background-image: none !important;
}

/* Header table — clean white bar */
table[width="768"][height="58"] {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
  height: auto !important;
  padding: 8px 0 !important;
}

/* ==========================================================
   MAIN NAVIGATION
   Dark brown bar with gold hover accents
   ========================================================== */
#mainmenu {
  background: #433224 !important;
  border-bottom: none !important;
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  height: auto !important;
}

#mainmenu tr {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2px 6px;
  padding: 5px 10px;
}

#mainmenu td {
  padding: 0 !important;
  background: transparent !important;
  background-image: none !important;
}

#mainmenu td[background],
#mainmenu td[background*="menu_on"],
#mainmenu td[background*="menu_off"] {
  background: transparent !important;
  background-image: none !important;
}

/* Hide separator cells and images */
#mainmenu td[width="1"] { display: none; }
#mainmenu img[width="1"] { display: none; }

#mainmenu a:link, #mainmenu a:visited {
  display: block;
  padding: 8px 12px;
  color: var(--nav-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-bottom: 0;
  border-radius: 3px;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

#mainmenu a:hover, #mainmenu a:focus {
  background: rgba(255,255,255,0.13);
  color: var(--nav-hover);
  border-bottom: 0;
  text-decoration: none;
}

/* Active menu item */
#mainmenu td[background*="menu_on"] a:link,
#mainmenu td[background*="menu_on"] a:visited {
  color: var(--nav-hover);
  border-bottom: 0;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
}

/* ==========================================================
   CONTENT LABELS / TYPOGRAPHY
   ========================================================== */
.title, font.title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chaptertitle, font.chaptertitle {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  display: block;
  margin: 32px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.feature, font.feature {
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.feature_t, font.feature_t {
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ==========================================================
   TABLE COLUMN HEADERS
   ========================================================== */
.td_Title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
  background: var(--surface) !important;
}

/* ==========================================================
   BOOK LISTING ROWS — Most important visual change
   ========================================================== */

/* Alternating row colors — very subtle */
tr[bgcolor="#f8fce3"], tr[bgcolor="#F8FCE3"] {
  background-color: var(--surface-alt) !important;
}

tr[bgcolor="#FDFDFD"] {
  background-color: var(--surface) !important;
}

/* Bottom border on each row for clean separation */
tr[bgcolor="#f8fce3"] td,
tr[bgcolor="#F8FCE3"] td,
tr[bgcolor="#FDFDFD"] td {
  padding: 18px 14px !important;
  vertical-align: top;
  border-bottom: 1px solid var(--border-light);
}

/* Row hover effect for scanability */
tr[bgcolor="#f8fce3"]:hover,
tr[bgcolor="#F8FCE3"]:hover,
tr[bgcolor="#FDFDFD"]:hover {
  background-color: var(--row-hover) !important;
}

/* Screenshot images in listings — subtle polish */
tr[bgcolor] td[width="24%"] img,
tr[bgcolor] td[width="25%"] img {
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease;
}

tr[bgcolor] td[width="24%"] img:hover,
tr[bgcolor] td[width="25%"] img:hover {
  box-shadow: var(--shadow-md);
}

/* Bestselling badge — refined inline badge */
font[color="red"], font[color='red'] {
  color: var(--bestseller) !important;
  font-size: 10px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  padding: 3px 8px;
  background: #fdf0e6;
  border-radius: 3px;
  border: 1px solid #f0d4bc;
  margin-bottom: 6px;
  line-height: 1.2;
}

/* Blurb text in listings */
.blurb {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================
   FORMS — Search bar, login, etc.
   ========================================================== */
.input_bg, input[type="text"], input[type="password"] {
  font-family: "Lora", Georgia, serif;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input_bg:focus, input[type="text"]:focus, input[type="password"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

input[type="submit"], input[type="button"], input[type="reset"] {
  font-family: "Lora", Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--surface);
  background: var(--nav-bg);
  border: 1px solid var(--nav-bg);
  padding: 9px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.01em;
}

input[type="submit"]:hover, input[type="button"]:hover, input[type="reset"]:hover {
  background: #2a1f14;
  border-color: #2a1f14;
}

input[type="submit"]:active, input[type="button"]:active {
  transform: translateY(1px);
}

textarea {
  font-family: "Lora", Georgia, serif;
  font-size: 14px;
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: var(--radius);
  outline: none;
  max-width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

select, .select_bg {
  font-family: "Lora", Georgia, serif;
  font-size: 14px;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.button {
  font-family: "Lora", Georgia, serif;
  font-size: 14px;
  background: var(--nav-bg);
  color: var(--surface);
  border: 1px solid var(--nav-bg);
  padding: 9px 22px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ==========================================================
   ERROR MESSAGES
   ========================================================== */
.error {
  font-size: 14px;
  color: #c0392b;
  font-weight: 500;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ==========================================================
   SUBCATEGORY BOX
   ========================================================== */
.subcategory, table.subcategory {
  background-color: var(--surface) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius);
  padding: 12px 8px;
}

.subcategory td {
  padding: 5px 12px;
}

/* ==========================================================
   FORM HEADERS / STYLED TABLES
   ========================================================== */
td.form_header {
  background-color: var(--surface-alt);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 2px solid var(--border);
}

.table_form {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

td.form_header2 {
  background-color: #f0f5e8;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 2px solid #c4d4a4;
}

.table_form2 {
  background-color: #f8faf2;
  border: 1px solid #c4d4a4;
  border-radius: var(--radius);
}

/* ==========================================================
   LISTS — Custom bullets with accent color
   ========================================================== */
ul {
  margin: 12px 0;
  padding: 0 0 0 24px;
  list-style: none;
}

li {
  position: relative;
  padding: 4px 0 4px 14px;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* ==========================================================
   ARTICLE / RSS CONTAINERS
   ========================================================== */
.article_container {
  border-top: 1px solid var(--border);
  margin: 0 auto;
  max-width: 960px;
  width: 100%;
  padding: 24px 16px;
}

.rss_float {
  text-align: left;
  margin: 0 auto;
  max-width: 960px;
  width: 100%;
  padding: 12px 16px;
}

/* ==========================================================
   ADS (preserve existing)
   ========================================================== */
.googleAdsDiv { text-align: left; }
.googleAdsDivOver { text-align: left; background-color: var(--surface-alt); }
.adsByGoogleSpan { width: 100%; margin: 0; padding: 0 0 5px; }
a.adsTitle { font-weight: 700; text-decoration: underline; border-bottom: none; }
a.adsTitle:hover { text-decoration: none; border-bottom: none; }
#adsense-bluebanner { padding: 10px 0 0 6px; }
#adsense-rectangle-article { padding: 0; }
a.adsByGoogle, a.adsLink {
  font-size: 10px; text-decoration: underline;
  color: #a2a6a9; border-bottom: none;
}
a.adsByGoogle:hover, a.adsLink:hover {
  text-decoration: none; border-bottom: none;
}

/* ==========================================================
   SCREENSHOT THUMBNAILS
   ========================================================== */
img[style*="border: 1px solid #333333"],
img[style*="border: 1px #333333"] {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}

/* ==========================================================
   CONTENT PAGES PADDING
   ========================================================== */
table[width="768"] > tbody > tr > td,
table[width="760"] > tbody > tr > td {
  padding-left: 14px;
  padding-right: 14px;
}

/* Don't double-pad nested tables */
table[width="768"] table td,
table[width="760"] table td {
  padding-left: 4px;
  padding-right: 4px;
}

/* ==========================================================
   HOME + CATEGORY INTRO / CONTROLS
   ========================================================== */
.intro-panel {
  margin-top: 14px !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.intro-panel-body {
  padding: 18px 22px !important;
}

.intro-title {
  margin: 0 0 8px 0;
  font-size: 30px;
  line-height: 1.2;
  color: var(--text);
  font-weight: 500;
}

.intro-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.intro-highlights {
  margin-top: 10px !important;
  margin-bottom: 16px !important;
  background: linear-gradient(180deg, #faf7f1 0%, #ffffff 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.intro-highlights td {
  padding: 8px 18px 14px !important;
}

.intro-highlights ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro-highlights li {
  margin: 0;
  padding: 12px 0 12px 18px;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.intro-highlights li:first-child {
  border-top: 0;
}

.intro-highlights li::before {
  top: 20px;
}

.intro-highlights a {
  font-weight: 600;
}

.section-details {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.section-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.section-details > summary::-webkit-details-marker {
  display: none;
}

.section-details .summary-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.section-details-subcategory {
  width: 100%;
  max-width: 960px;
  margin: 10px auto 8px auto;
  background: transparent;
  border: 0;
}

.section-details-subcategory > summary {
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.section-details-subcategory .summary-label {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.section-details-subcategory[open] > summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.section-details-subcategory table.subcategory {
  margin-top: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.intro-collapsible {
  margin-top: 8px !important;
}

.section-details-intro {
  border: 0;
}

.section-details-intro > summary {
  padding: 2px 0 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.section-details-intro .summary-label {
  font-size: 13px;
}

.intro-compact-list {
  margin: 10px 0 0 0;
  padding: 0;
  list-style: none;
}

.intro-compact-list li {
  margin: 0;
  padding: 11px 0 11px 16px;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.intro-compact-list li::before {
  top: 18px;
}

.intro-compact-list li:first-child {
  border-top: 0;
}

.listing-controls {
  margin-top: 8px !important;
  margin-bottom: 6px !important;
}

.listing-controls td {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.pages-cell {
  color: var(--text-secondary);
}

.section-title {
  padding-top: 2px !important;
}

.listing-head {
  border-top: 1px solid var(--border) !important;
  border-bottom: 1px solid var(--border) !important;
  background: var(--surface) !important;
}

.listing-table {
  background: var(--surface) !important;
  border: 1px solid var(--border-light);
  border-top: 0;
}

.listing-controls-bottom {
  margin-top: 2px !important;
  margin-bottom: 20px !important;
}

.subcategory-title {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 600;
}

.breadcrumbs-row td {
  color: var(--text-muted);
  font-size: 14px;
}

/* ==========================================================
   CTA LINKS ("Get Ebook Now")
   ========================================================== */
a[style*="color:#FF0000"], a[style*="color: #FF0000"] {
  color: var(--cta) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-bottom: 2px solid var(--cta) !important;
  transition: color 0.2s, border-color 0.2s !important;
}

a[style*="color:#FF0000"]:hover, a[style*="color: #FF0000"]:hover {
  color: var(--cta-hover) !important;
  border-bottom-color: var(--cta-hover) !important;
}

/* Dedicated strong CTA on book detail page */
a.cta-get-ebook:link,
a.cta-get-ebook:visited {
  display: inline-block;
  background: #c62828 !important;
  color: #ffffff !important;
  border: 1px solid #a61f1f !important;
  border-bottom: 1px solid #8f1919 !important;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

a.cta-get-ebook:hover,
a.cta-get-ebook:focus {
  background: #e53935 !important;
  color: #ffffff !important;
  border-color: #b71c1c !important;
  border-bottom-color: #8f1919 !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.22);
}

a.cta-get-ebook:active {
  transform: translateY(0);
}

/* ==========================================================
   ERROR/INFO PAGE STYLING
   ========================================================== */
tr[bgcolor="#ECF2FE"] { background-color: var(--surface-alt) !important; }
td[bgcolor="#ECF2FE"] { background-color: var(--surface-alt) !important; }

/* ==========================================================
   CONTACT / LEGAL PAGE TEXT
   ========================================================== */
.contactinfo, font.contactinfo {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

/* ==========================================================
   RECOMMEND/EDIT FORM ROWS
   ========================================================== */
tr[bgcolor="#F5F5F5"] {
  background-color: var(--surface-alt) !important;
}

tr[bgcolor="#F5F5F5"] td {
  padding: 10px 14px;
}

/* ==========================================================
   OVERRIDE INLINE STYLES FROM TEMPLATES
   ========================================================== */

/* Border styles on tables */
table[style*="border-top-color:#cccccc"],
table[style*="border-top-color: #cccccc"] {
  border-top-color: var(--border) !important;
  border-bottom-color: var(--border) !important;
}

/* Trebuchet MS inline font override */
td[style*="Trebuchet"] {
  font-family: "Lora", Georgia, serif !important;
  font-size: 15px !important;
  color: var(--text-secondary) !important;
}

/* Override FFFFE0 bgcolor on subcategory tables */
table[bgcolor="#FFFFE0"] {
  background-color: var(--surface) !important;
}

/* Override white bgcolor on tables */
table[bgcolor="#ffffff"] {
  background-color: var(--surface) !important;
}

/* View page: book detail rows */
tr[bgcolor="#f8fce3"] td[width="20%"],
tr[bgcolor="#FDFDFD"] td[width="20%"] {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* View page: book title */
div[style*="font-size:15pt"][style*="color:#996600"] {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  line-height: 1.3 !important;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

/* View page: right column screenshot area */
td[bgcolor="#FEFEFE"] {
  background-color: var(--surface) !important;
}

tr[bgcolor="#FAFAFA"] {
  background-color: var(--surface) !important;
}

td[bgcolor="#FAFAFA"] {
  background-color: var(--surface) !important;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 768px) {
  body, td, th {
    font-size: 14px;
  }

  table[width="768"],
  table[width="760"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Stack book listing columns on small screens */
  table[width="768"] td[width="24%"],
  table[width="768"] td[width="25%"] {
    width: 100% !important;
    display: block;
    text-align: center;
    padding: 14px 16px !important;
  }

  table[width="768"] td[width="35%"],
  table[width="768"] td[width="31%"],
  table[width="768"] td[width="8%"] {
    width: 100% !important;
    display: block;
    padding: 8px 16px !important;
  }

  .intro-panel-body {
    padding: 14px 16px !important;
  }

  .intro-title {
    font-size: 24px;
  }

  .intro-copy {
    font-size: 15px;
    line-height: 1.7;
  }

  .intro-highlights td {
    padding: 6px 14px 10px !important;
  }

  .intro-highlights li {
    padding: 10px 0 10px 16px;
    font-size: 14px;
  }

  .intro-highlights li::before {
    top: 16px;
  }

  .section-details > summary {
    padding: 10px 12px;
  }

  .section-details .summary-label {
    font-size: 12px;
  }

  .intro-compact-list li {
    padding: 10px 0 10px 14px;
    font-size: 14px;
  }

  .intro-compact-list li::before {
    top: 15px;
  }

  .listing-controls td {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .feature, font.feature,
  .feature_t, font.feature_t {
    font-size: 20px;
  }

  .chaptertitle, font.chaptertitle {
    font-size: 19px;
  }

  #mainmenu a:link, #mainmenu a:visited {
    padding: 7px 10px;
    font-size: 12px;
  }

  /* View page: stack book info and screenshot */
  td[width="275"] {
    width: 100% !important;
    display: block;
    text-align: center;
    padding: 16px;
  }

  a.list:link, a.list:visited {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  body, td, th {
    font-size: 13px;
  }

  .feature, font.feature,
  .feature_t, font.feature_t {
    font-size: 18px;
  }

  #mainmenu a:link, #mainmenu a:visited {
    padding: 7px 8px;
    font-size: 11px;
  }

  .td_Title {
    font-size: 10px;
    padding: 8px;
  }

  a.list:link, a.list:visited {
    font-size: 14px;
  }

  tr[bgcolor="#f8fce3"] td,
  tr[bgcolor="#F8FCE3"] td,
  tr[bgcolor="#FDFDFD"] td {
    padding: 12px 10px !important;
  }

  .intro-title {
    font-size: 21px;
  }

  .intro-copy {
    font-size: 14px;
  }
}
