/* Egypt Through the Ages — shared stylesheet (museum theme: sandstone + deep blue + gold, mobile-first) */
* { box-sizing: border-box; }
:root {
  --bg: #f7f1e5; --bg2: #fffdf6; --card: #fffaf0; --card2: #f1e7cf;
  --text: #2b2620; --muted: #6b6257; --gold: #b8860b; --gold2: #c9a227;
  --blue: #14324f; --blue2: #1d4568; --border: #ddd2bd;
}
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: var(--text); line-height: 1.75; font-size: 1.05rem; background: var(--bg);
}
h1, h2, h3 { font-family: "Playfair Display", Georgia, "Times New Roman", serif; line-height: 1.3; color: var(--blue); }
h1 { font-size: 2.2rem; margin: 0 0 .5rem; }
h2 { font-size: 1.55rem; margin: 2rem 0 .6rem; border-bottom: 2px solid var(--gold2); padding-bottom: .35rem; }
h3 { font-size: 1.25rem; margin: 1.4rem 0 .4rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue2); }
img { max-width: 100%; height: auto; border-radius: 12px; }
.container { max-width: 860px; margin: 0 auto; padding: 0 1rem; }
.lead { font-size: 1.2rem; color: #4a4238; }

/* Header + nav */
.site-header { background: var(--blue); padding: 1rem 0 .6rem; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.site-title { font-family: "Playfair Display", Georgia, serif; font-size: 1.6rem; font-weight: 700; color: #fff; text-decoration: none; display: block; text-align: center; margin-bottom: .5rem; }
.site-title span { color: var(--gold2); }
.main-nav { display: flex; flex-wrap: wrap; gap: .35rem .6rem; justify-content: center; }
.main-nav a { color: #cdd8e4; text-decoration: none; font-size: .92rem; font-weight: 700; padding: .25rem .55rem; border-radius: 999px; border: 1px solid transparent; }
.main-nav a:hover { color: #fff; border-color: #3d5f83; background: var(--blue2); }
.main-nav a.current { color: var(--blue); background: var(--gold2); }

/* Hero image + figures */
.hero-img { width: 100%; border-radius: 14px; margin: 1.2rem 0; box-shadow: 0 8px 28px rgba(20,50,79,.25); }
figure { margin: 1.2rem 0; }
figcaption { color: var(--muted); font-size: .9rem; text-align: center; margin-top: .4rem; }

/* Fact boxes, tables */
.why-box { background: #fdf6e0; border: 2px solid var(--gold2); border-radius: 14px; padding: 1rem 1.2rem; margin: 1.4rem 0; }
.why-box strong { color: #8a6408; }
.fact-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; background: var(--card); border-radius: 12px; overflow: hidden; font-size: .98rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.fact-table th, .fact-table td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.fact-table th { background: var(--blue); color: #fff; width: 42%; }
.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: 0; }
ul.key-list { padding-inline-start: 1.2rem; }
ul.key-list li { margin-bottom: .5rem; }

/* Timeline (timeline.html) */
.timeline { list-style: none; padding: 0 0 0 1.4rem; margin: 1.2rem 0; border-inline-start: 3px solid var(--gold2); }
.timeline li { margin-bottom: 1.2rem; position: relative; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -1.78rem; top: .45rem; width: .85rem; height: .85rem; border-radius: 50%; background: var(--gold2); border: 2px solid var(--blue); }
.timeline .t-date { font-weight: 700; color: var(--blue); font-family: "Playfair Display", Georgia, serif; font-size: 1.1rem; display: block; }

/* Videos */
.video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 14px; margin: 1.2rem 0; background: #000; }
.video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-cap { color: var(--muted); font-size: .9rem; text-align: center; margin: -.5rem 0 1.4rem; }

/* Homepage place cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.place-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; text-decoration: none; color: var(--text); display: block; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.place-card:hover { border-color: var(--gold2); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20,50,79,.15); }
.place-card h3 { margin: 0 0 .3rem; color: var(--blue); }
.place-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.place-card .emoji { font-size: 2rem; }

/* Related links */
.related { margin: 2rem 0; }
.related h2 { font-size: 1.25rem; }
.related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.related a { display: inline-block; background: var(--card); border: 1px solid var(--border); color: var(--text); text-decoration: none; padding: .45rem .9rem; border-radius: 999px; font-size: .95rem; }
.related a:hover { border-color: var(--gold2); color: var(--blue); }

/* Book promo (same pattern as the other network sites) */
.hr-books-promo{display:flex;gap:1.25rem;align-items:center;background:#101722;border:1px solid #2a3a52;border-inline-start:4px solid #c9a227;border-radius:14px;padding:1.1rem 1.25rem;margin:2rem auto;max-width:860px;color:#f4f6f9;font-family:inherit}
.hr-books-promo__cover{width:92px;height:138px;object-fit:cover;border-radius:8px;flex:none;box-shadow:0 4px 16px rgba(0,0,0,.45)}
.hr-books-promo__body{min-width:0}
.hr-books-promo__badge{display:inline-block;font-size:.8rem;font-weight:700;color:#101722;background:#c9a227;border-radius:999px;padding:.15rem .7rem;margin-bottom:.5rem}
.hr-books-promo__title{font-size:1.15rem;line-height:1.5;margin:0 0 .35rem;color:#fff;font-family:inherit}
.hr-books-promo__text{font-size:.95rem;line-height:1.7;margin:0 0 .8rem;color:#a9b8ca}
.hr-books-promo__cta{display:inline-block;background:#3478f6;color:#fff !important;text-decoration:none;font-weight:700;font-size:.95rem;padding:.6rem 1.3rem;border-radius:999px}
.hr-books-promo__cta:hover{background:#2a63d6}
@media(max-width:560px){.hr-books-promo{flex-direction:column;text-align:center}.hr-books-promo__cover{width:110px;height:165px}}

/* Footer */
footer { text-align: center; color: var(--muted); font-size: .9rem; padding: 1.6rem 1rem 2.2rem; border-top: 2px solid var(--gold2); margin-top: 1rem; background: var(--bg2); }
footer a { color: var(--muted); }
footer nav { margin-bottom: .8rem; }
footer nav a { margin: 0 .4rem; }

@media(max-width:600px){
  h1 { font-size: 1.75rem; }
  body { font-size: 1rem; }
  .site-title { font-size: 1.35rem; }
  .fact-table th { width: 45%; }
}

/* Mobile header: compact bar + hamburger (never eat half the mobile screen; scrolls away) */
.nav-toggle { display: none; }
@media(max-width:768px){
  .site-header { position: static; padding: .6rem 0; }
  .site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
  .site-title { font-size: 1.15rem; margin-bottom: 0; text-align: start; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; font-size: 1.4rem; line-height: 1; color: #fff; background: transparent; border: 1px solid #3d5f83; border-radius: 10px; cursor: pointer; flex: none; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: .15rem; padding-top: .5rem; }
  .main-nav.open { display: flex; }
  .main-nav a { display: block; padding: .55rem .7rem; font-size: 1rem; }
}
