
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Helvetica, Arial, sans-serif;
  background: #8E7D9A;
  color: #3d3530;
  min-height: 100vh;
  padding: 2rem 1rem 3rem;
}

.inner {
  max-width: 780px;
  margin: 0 auto;
}

/* ── PAGE HEADER ── */
.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 2rem 1.5rem 1.8rem;
  background: #3d3530;
  border-radius: 14px;
}
.page-header .tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:#F8EBDA;
  margin-bottom: 0.6rem;
}
.page-header h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.6rem;
  color: #f5ede0;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.page-header .subtitle {
  font-size: 14px;
  color: #F8EBDA;
  margin-top: 0.5rem;
}

/* ── SECTIONS ── */
.section {
  background: #f5f0e8;
  border-radius: 12px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.4rem;
  border: 1px solid #d6cdc0;
}
.section-alt  { background: #eae4da; }
.section-alt2 { background: #f0ebe0; }

.section-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a7a68;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.section h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  color: #3d3530;
  font-weight: 700;
  margin-bottom: 1.1rem;
  border-bottom: 1.5px solid #d0c8b8;
  padding-bottom: 0.5rem;
}

/* ── MEANING BLOCKS ── */
.meaning-block { margin-bottom: 1.4rem; }
.meaning-block:last-child { margin-bottom: 0; }

.phrase-tag {
  display: inline-block;
  background: #3d3530;
  color: #f5ede0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  font-style: italic;
  padding: 3px 10px;
  border-radius: 5px;
  margin-bottom: 0.3rem;
}
.pos {
  font-size: 12px;
  color: #8F2719;
  margin-left: 6px;
  font-style: italic;
}

/* alternating definition colors */
.def-d { color: #7c3faf; font-size: 14px; margin: 0.55rem 0; font-weight: 500; }
.def-e { color: #a8358a; font-size: 14px; margin: 0.55rem 0; font-weight: 500; }

.examples { list-style: none; padding-left: 0; }
.examples li {
  font-size: 14px;
  color: #3d3530;
  padding: 4px 0 4px 14px;
  border-left: 2.5px solid #b5a896;
  margin-bottom: 3px;
  line-height: 1.55;
}
.examples li em { color: #5a3e2b; font-style: italic; }

.divider {
  border: none;
  border-top: 1px dashed #c5bdb0;
  margin: 1.2rem 0;
}

/* ── IDIOM GRID ── */
.idiom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) { .idiom-grid { grid-template-columns: 1fr; } }

.idiom-card {
  background: #ede6d8;
  border-radius: 9px;
  padding: 1rem 1.1rem;
  border: 1px solid #d0c4b0;
}
.idiom-card .idiom-phrase {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #3d3530;
  margin-bottom: 0.2rem;
}
.idiom-card .idiom-def-d { font-size: 13px; color: #7c3faf; margin-bottom: 0.5rem; font-style: italic; font-weight: 500; }
.idiom-card .idiom-def-e { font-size: 13px; color: #a8358a; margin-bottom: 0.5rem; font-style: italic; font-weight: 500; }
.idiom-card .examples li { font-size: 13px; }

/* ── COLLOCATIONS ── */
.colloc-row { margin-bottom: 1rem; }
.colloc-row:last-child { margin-bottom: 0; }

.colloc-head {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #3d3530;
  margin-bottom: 0.3rem;
}
.colloc-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.4rem; }
.pill {
  background: #d4c9b8;
  color: #3d3530;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 600;
}

/* ── SAYINGS ── */
.saying-block {
  background: #e4ddd0;
  border-left: 4px solid #8a7a68;
  border-radius: 0 8px 8px 0;
  padding: 0.8rem 1rem;
  margin-bottom: 0.9rem;
}
.saying-block:last-child { margin-bottom: 0; }
.saying-phrase {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #3d3530;
  margin-bottom: 0.15rem;
}
.saying-note-d { font-size: 13px; color: #7c3faf; font-weight: 500; margin-bottom: 0.4rem; }
.saying-note-e { font-size: 13px; color: #a8358a; font-weight: 500; margin-bottom: 0.4rem; }

/* ── BONUS SECTION ── */
.bonus-section {
  background: #ddd5c5;
  border: 2px dashed #b5a890;
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.4rem;
  position: relative;
}
.bonus-badge {
  position: absolute;
  top: -13px;
  left: 20px;
  background: #8a7a68;
  color: #f5ede0;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.bonus-section h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  color: #3d3530;
  margin-bottom: 0.6rem;
  margin-top: 0.4rem;
  border-bottom: 1.5px solid #c8bfb0;
  padding-bottom: 0.4rem;
}
.bonus-intro {
  font-size: 13.5px;
  color: #5a4e42;
  margin-bottom: 1rem;
}
.spelling-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 0.9rem;
}
.spell-card {
  background: #ede6d8;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid #c8bfb0;
}
.spell-form {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #3d3530;
  margin-bottom: 0.15rem;
}
.spell-use {
  font-size: 12px;
  color: #7a6a58;
  font-style: italic;
  margin-bottom: 0.3rem;
}
.spell-ex { font-size: 12.5px; color: #4a3f35; }
.spell-ex em { font-style: italic; color: #5a3e2b; }

.bonus-note {
  font-size: 12.5px;
  color: #6a5c4e;
  font-style: italic;
}
.bonus-note strong { font-style: normal; }

/* 🔹 Sticky Navigation */
.nav {
  position: sticky;
  top: 0;
  background: #3d3530;
  display: flex;
  gap: 8px 12px;
  padding: 14px 10px;        /* slightly more padding */
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 2px solid #8E7D9A;
  z-index: 1000;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.8rem;     /* extra margin below nav */
}

.nav a {
  text-decoration: none;
  color: #f5ede0;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav a:hover {
  background: rgba(255,255,255,0.15);
}

.nav a.active {
  background: #8E7D9A;
  color: #fff;
  font-weight: bold;
}

/* Small adjustment for mobile */
@media (max-width: 560px) {
  .nav {
    padding: 10px 6px;
    gap: 6px 8px;
  }
  .nav a {
    font-size: 13px;
    padding: 5px 10px;
  }
}


