/* ============================================================
   scriptedonachip.com — Enhanced Site Styles
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --accent:      #1a6fa8;
  --accent-dark: #124e78;
  --accent-soft: #e8f3fb;
  --bg:          #f8f5f1;
  --card-bg:     #ffffff;
  --text:        #2c2c2c;
  --muted:       #6b7280;
  --border:      #e2ddd8;
  --nav-bg:      #1a2a40;
  --tag-border:  #bdd3e8;
}

/* ── Reset & Global Theme ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Override main.css — apply unified theme to every page */
html, body {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text) !important;
  background-color: var(--bg) !important;
}
.page-content {
  background-color: var(--bg) !important;
}
.site-header {
  background-color: var(--nav-bg) !important;
  border-top: none !important;
}
.site-footer {
  background-color: #f0ece6 !important;
}

h1,h2,h3,h4,h5,h6 { font-weight: 600; line-height: 1.25; }
a         { color: var(--accent); text-decoration: none; }
a:hover   { color: var(--accent-dark); text-decoration: underline; }
a:visited { color: #1558a0; }

/* ── Layout Utility ── */
.wrap {
  max-width: 900px;
  padding: 0 20px;
  margin: 0 auto;
}
.wrap:before, .wrap:after { content:""; display:table; }
.wrap:after { clear: both; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-default {
  background: var(--nav-bg) !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.navbar-default .navbar-brand,
.navbar-default .navbar-nav > li > a {
  color: #dce9f5 !important;
  font-weight: 600;
  font-size: 1.1rem !important;
  line-height: 1.4;
  letter-spacing: .02em;
}
.navbar-default .navbar-brand {
  font-size: 1.1rem !important;
}
.navbar-default .navbar-nav > li > a:hover {
  color: #fff !important;
  background: transparent !important;
}
.navbar-default .navbar-brand:hover { color: #fff !important; }
.navbar-default .navbar-toggle .icon-bar { background-color: #dce9f5; }
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus { background-color: rgba(255,255,255,.1); }

/* ── Quick-Nav Panel (top-right fixed drawer) ── */
#quick-nav-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
#quick-nav-toggle:hover { background: var(--accent-dark); }
#quick-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .25s;
}
#quick-nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#quick-nav-toggle.open span:nth-child(2) { opacity: 0; }
#quick-nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

#quick-nav-panel {
  position: fixed;
  top: 0; right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--nav-bg);
  z-index: 9998;
  padding: 65px 24px 30px;
  overflow-y: auto;
  transition: right .3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,.4);
}
#quick-nav-panel.open { right: 0; }
#quick-nav-panel.open { right: 0; }
#quick-nav-panel .qnav-label {
  color: #8bb8d8;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 10px;
  margin-top: 22px;
  display: block;
}
#quick-nav-panel .qnav-label:first-child { margin-top: 0; }
#quick-nav-panel ul { list-style: none; margin: 0; padding: 0; }
#quick-nav-panel ul li { margin-bottom: 2px; }
#quick-nav-panel ul li a {
  color: #dce9f5;
  font-size: 0.85rem;
  display: block;
  padding: 5px 8px;
  border-radius: 5px;
  transition: background .15s;
}
#quick-nav-panel ul li a:hover {
  background: rgba(255,255,255,.12);
  text-decoration: none;
  color: #fff;
}
#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 9997;
}
#nav-overlay.open { display: block; }

/* ============================================================
   HERO SECTION (home page)
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, #1a2a40 0%, #1a6fa8 60%, #2ba8b0 100%);
  color: #fff;
  padding: 52px 0 40px;
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.hero-photo { flex-shrink: 0; }
.hero-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.45);
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  display: block;
}
.hero-text h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #fff;
  font-family: Georgia, serif;
}
.hero-subtitle {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 10px;
}
.hero-tagline {
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  font-style: italic;
  border-left: 3px solid rgba(255,255,255,.4);
  padding-left: 12px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.hero-links { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 13px;
  border-radius: 18px;
  font-size: .8rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  transition: background .2s;
}
.hero-links a:hover {
  background: rgba(255,255,255,.28);
  text-decoration: none;
  color: #fff;
}

/* Research interest chips */
.research-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 6px;
}
.chip {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--tag-border);
  border-radius: 18px;
  padding: 3px 11px;
  font-size: .76rem;
  font-weight: 500;
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content {
  padding: 28px 0 48px;
  background: var(--bg);
}

/* ── Section headings ── */
.section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 24px 0 10px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 5px;
}

/* ============================================================
   PUBLICATIONS PAGE
   ============================================================ */
.pub-section-title {
  background: var(--nav-bg);
  color: #dce9f5;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 26px 0 12px;
  letter-spacing: .02em;
}

.pub-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
}
.pub-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transform: translateY(-1px);
}
.pub-card-inner {
  display: flex;
  align-items: stretch;
}
.pub-thumb {
  flex-shrink: 0;
  width: 110px;
  overflow: hidden;
  background: #dde7ef;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pub-thumb img {
  width: 110px;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
  display: block;
}
.pub-no-thumb {
  width: 110px;
  min-height: 100px;
  height: 100%;
  background: linear-gradient(150deg, #1a2a40, #1a6fa8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pub-no-thumb i { color: rgba(255,255,255,.35); font-size: 1.8rem; }

.pub-body {
  flex: 1;
  padding: 14px 16px 12px;
}
.pub-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 5px;
}
.pub-title a { color: #1a2a40; }
.pub-title a:hover { color: var(--accent); }
.pub-authors {
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 4px;
  line-height: 1.5;
}
.pub-venue {
  font-size: .9rem;
  color: #555;
  margin-bottom: 8px;
}
.pub-venue a { color: #555; font-style: italic; }
.pub-venue a:hover { color: var(--accent); }
.pub-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pub-year {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--tag-border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: .82rem;
  font-weight: 600;
}
.pub-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 600;
}
.badge-accepted { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.badge-submitted { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.badge-oral { background: #ede9fe; color: #4c1d95; border: 1px solid #c4b5fd; }
.badge-report { background: #f0f9ff; color: #0c4a6e; border: 1px solid #bae6fd; }

.pub-abstract-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .88rem;
  color: var(--accent);
  cursor: pointer;
  border: 1px solid var(--tag-border);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 4px;
  margin-top: 7px;
  transition: background .15s;
  user-select: none;
}
.pub-abstract-btn:hover { background: #d4e8f5; }
.pub-abstract-btn i { font-size: .65rem; transition: transform .2s; }
.pub-abstract-btn.is-open i { transform: rotate(180deg); }

.pub-abstract {
  display: none;
  margin-top: 9px;
  padding: 10px 14px;
  background: #f5f8fb;
  border-left: 3px solid var(--accent);
  border-radius: 0 5px 5px 0;
  font-size: .93rem;
  line-height: 1.65;
  color: #3a3a3a;
}
.pub-abstract.is-open { display: block; }

.pubs-copyright {
  background: #f0f4f8;
  border-left: 4px solid var(--accent);
  padding: 10px 16px;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 18px;
  border-radius: 0 5px 5px 0;
}

.pubs-nav {
  text-align: center;
  margin-bottom: 20px;
  padding: 12px;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.pubs-nav a {
  margin: 0 8px;
  font-size: 1rem;
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: #f0ece6;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-col {
  flex: 1 1 180px;
}
.footer-col--right {
  flex: 1 1 220px;
  text-align: right;
}
.footer-label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #999;
  margin-bottom: 8px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 5px; }
.site-footer ul li a,
.site-footer p,
.site-footer li { font-size: .82rem; color: #6b7280; }
.site-footer ul li a { color: #6b7280; }
.site-footer ul li a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; gap: 18px; }
  .footer-col--right { text-align: left; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .hero-photo img { width: 100px; height: 100px; }
  .hero-text h1 { font-size: 1.55rem; }
  .hero-links { justify-content: center; }

  .pub-card-inner { flex-direction: column; }
  .pub-thumb { width: 100%; height: 160px; }
  .pub-thumb img { width: 100%; height: 160px; object-fit: cover; }
  .pub-no-thumb { width: 100%; height: 100px; }

  .footer-col-1, .footer-col-2, .footer-col-3 {
    float: none; clear: both; width: 100%; margin: 0 0 10px;
  }
  .wrap { padding: 0 14px; }
  .research-chips { justify-content: center; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .pub-title { font-size: .88rem; }
}

/* ============================================================
   HOME PAGE — SECTION HEADERS
   ============================================================ */
.cv-h {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: .88rem !important;
  font-weight: 700 !important;
  color: var(--nav-bg) !important;
  margin: 34px 0 14px !important;
  padding: 8px 16px;
  background: linear-gradient(90deg, rgba(26,111,168,.1) 0%, transparent 70%);
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.cv-h i { color: var(--accent); font-size: 1em; }
.cv-h i.fa-chevron-right { display: none; }

/* ============================================================
   BIO TIMELINE
   ============================================================ */
.bio-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 6px 0 24px;
}
.bio-tl-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  transition: box-shadow .15s, transform .15s;
}
.bio-tl-item:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,.09);
  transform: translateY(-1px);
}
.bio-tl-item:first-child {
  border-left: 3px solid var(--accent-dark);
}
.bio-tl-item:not(:first-child) {
  border-left: 3px solid var(--accent);
}
.bio-tl-year {
  display: inline-block;
  font-size: .68rem; font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  padding: 1px 8px;
  margin-bottom: 4px;
  letter-spacing: .03em;
}
.bio-tl-item:first-child .bio-tl-year { background: var(--accent-dark); }
.bio-tl-role { font-size: .85rem; color: var(--text); line-height: 1.5; }
.bio-tl-role a { color: var(--accent); }
@media (max-width: 768px) {
  .bio-timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .bio-timeline { grid-template-columns: 1fr; }
}

/* ============================================================
   NEWS FEED (inline on home page)
   ============================================================ */
.cv-news-feed { margin: 6px 0 20px; }
.cv-news-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 12px;
  margin-bottom: 5px;
  border-radius: 7px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  font-size: .86rem;
  line-height: 1.55;
  transition: box-shadow .15s;
}
.cv-news-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,.09); }
.cv-news-item.is-highlighted {
  border-left: 3px solid var(--accent);
  background: #eef6fd;
}
.cv-news-badge {
  flex-shrink: 0;
  font-size: .67rem; font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid var(--tag-border);
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
  margin-top: 2px;
  min-width: 76px;
  text-align: center;
}
.cv-news-text { flex: 1; color: var(--text); }
.cv-news-text a { color: var(--accent); }

/* ============================================================
   TALK CARDS
   ============================================================ */
.talk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 6px 0 20px;
}
.talk-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  transition: box-shadow .15s, transform .15s;
}
.talk-card:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,.09);
  transform: translateY(-1px);
}
.talk-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.talk-date {
  font-size: .67rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  padding: 1px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}
.talk-venue {
  font-size: .72rem;
  color: var(--muted);
  font-style: italic;
}
.talk-venue i { margin-right: 3px; color: var(--accent); font-style: normal; }
.talk-title {
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--nav-bg);
}
.talk-title a { color: var(--nav-bg); }
.talk-title a:hover { color: var(--accent); text-decoration: none; }
.talk-appendix {
  display: inline-block;
  margin-left: 6px;
  font-size: .7rem;
  font-weight: 600;
  color: var(--accent) !important;
  border: 1px solid var(--tag-border);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 0 5px;
  vertical-align: middle;
}
@media (max-width: 640px) {
  .talk-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MENTORING GRID
   ============================================================ */
.mentoring-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 20px;
}
.mentee-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: .82rem;
  line-height: 1.55;
  transition: box-shadow .15s, transform .15s;
}
.mentee-card:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,.09);
  transform: translateY(-1px);
}
.mentee-card a { color: var(--accent); font-weight: 600; }
.mentee-card .mentee-trail { color: var(--muted); font-size: .78rem; margin-top: 3px; }
@media (max-width: 640px) {
  .mentoring-grid { grid-template-columns: 1fr; }
}
.mentoring-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--tag-border);
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}
.mentoring-toggle:hover { background: #d4e8f5; }

/* ============================================================
   SERVICE GRID
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 20px;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: .82rem;
  line-height: 1.55;
  transition: box-shadow .15s;
}
.service-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.service-card--wide {
  grid-column: 1 / -1;
}
.service-card-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 7px;
}
.service-card-label i { margin-right: 5px; }
.service-card ul {
  margin: 0;
  padding-left: 16px;
}
.service-card ul li {
  margin-bottom: 4px;
}
.service-card a { color: var(--accent); }
@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card--wide { grid-column: 1; }
}

/* ============================================================
   PROFESSIONAL MEMBERSHIPS
   ============================================================ */
.memberships-wrap { margin: 8px 0 20px; }
.memberships-active {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.membership-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--tag-border);
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
}
.membership-chip:hover {
  background: #d4e8f5;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  text-decoration: none;
  color: var(--accent-dark);
}
.membership-chip i { font-size: .75em; color: #2e9e5b; }
.memberships-former {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.memberships-former-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.membership-chip--former {
  background: #f3f4f6;
  color: var(--muted);
  border-color: #d1d5db;
  text-decoration: line-through;
  opacity: .7;
}
.membership-chip--former:hover {
  background: #e5e7eb;
  color: var(--muted);
  opacity: .85;
}

/* ============================================================
   CYCLING / KOMs
   ============================================================ */
.cycling-wrap {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 8px 0 20px;
}
.cycling-text {
  flex: 1;
  font-size: .87rem;
  line-height: 1.6;
}
.cycling-text p { margin-bottom: 10px; }
.cycling-states-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.cycling-states {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cycling-states span {
  background: var(--nav-bg);
  color: #dce9f5;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.cycling-strava { flex-shrink: 0; }
@media (max-width: 640px) {
  .cycling-wrap { flex-direction: column; }
  .cycling-strava iframe { max-width: 100% !important; }
}

/* ============================================================
   READING SHELF
   ============================================================ */
.reading-shelf-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 4px;
  margin: 10px 0 10px;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 6px;
}
.book-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 6px 6px;
  padding: 10px 11px 9px;
  font-size: .8rem;
  transition: box-shadow .15s, transform .15s;
}
.book-card:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.book-card--read {
  border-top-color: #9ca3af;
  opacity: .7;
}
.book-card--read:hover { opacity: .9; }
.book-title {
  font-weight: 600;
  color: var(--nav-bg);
  line-height: 1.4;
  margin-bottom: 4px;
}
.book-card--read .book-title {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: #9ca3af;
}
.book-author {
  font-size: .74rem;
  color: var(--muted);
  font-style: italic;
}
.book-read-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .62rem;
  font-weight: 700;
  color: #fff;
  background: #6b7280;
  border-radius: 3px;
  padding: 1px 5px;
  margin-bottom: 5px;
}
.book-read-badge i { font-size: .7em; }
@media (max-width: 640px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .book-grid { grid-template-columns: 1fr; }
}

/* ── Old float footer fallback (kept for safety) ── */
.site-footer .column { float: none; }
.footer-col-1, .footer-col-2, .footer-col-3 { width: auto; float: none; }

/* ── Quotes Page ── */
.quotes-container p {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 10px 0;
  font-style: italic;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  line-height: 1.65;
}
.quotes-container h4 {
  margin: 28px 0 8px;
  color: var(--accent);
  font-size: 1rem;
}
.quotes-container blockquote {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 8px 14px;
  color: var(--muted);
  font-style: normal;
  font-size: .85rem;
  margin: 6px 0 12px;
}
.quotes-container ul {
  margin: 4px 0 10px 20px;
}

/* ── Misc ── */
blockquote {
  border-left: 4px solid var(--border);
  padding-left: 14px;
  color: var(--muted);
  font-style: italic;
  margin: 10px 0;
}
.table-hover tbody tr:hover { background: var(--accent-soft) !important; }
iframe { max-width: 100%; }
.imgright { float: right; margin-left: 10px; }
.imgcap img { border: 1px solid #999; max-width: 100%; }
.imgcap { color: #555; font-size: 14px; text-align: center; }
.idxHdr { text-align: center; }
