/* Lewis Home Manual — Stylesheet */
/* Rebuilt 2026-03-20 */

:root {
  --navy:    #1e3a5f;
  --blue:    #2c5f8a;
  --accent:  #e8a020;
  --light:   #f5f7fa;
  --border:  #d0d8e4;
  --text:    #222;
  --muted:   #666;
  --link:    #1a5276;
  --nav-h:   60px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--light);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

/* ── TOP NAV ─────────────────────────────────────── */
.topnav {
  background: var(--navy);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.topnav .site-title {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  margin-right: 32px;
}

.topnav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.topnav nav a {
  color: #cdd8e8;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.88rem;
  transition: background 0.15s, color 0.15s;
}

.topnav nav a:hover,
.topnav nav a.active {
  background: var(--blue);
  color: #fff;
}

/* ── PAGE LAYOUT ─────────────────────────────────── */
.page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ── HERO (index only) ───────────────────────────── */
.hero {
  text-align: center;
  padding: 48px 0 32px;
}

.hero h1 {
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.hero img {
  width: 100%;
  max-width: 780px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ── SECTION CARDS (index grid) ─────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.card .icon { font-size: 2rem; }

.card .label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.card .sub {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── SECTION PAGES ───────────────────────────────── */
h1 { font-size: 1.8rem; color: var(--navy); margin-bottom: 6px; }
h2 { font-size: 1.25rem; color: var(--blue); margin: 28px 0 8px; border-bottom: 2px solid var(--border); padding-bottom: 4px; }
h3 { font-size: 1.05rem; color: var(--navy); margin: 18px 0 6px; }

.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--link); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

p  { margin-bottom: 12px; }
ul, ol { margin: 0 0 12px 24px; }
li { margin-bottom: 4px; }

a { color: var(--link); }
a:hover { text-decoration: underline; }

/* ── CALLOUT BOXES ───────────────────────────────── */
.note {
  background: #eaf3fb;
  border-left: 4px solid var(--blue);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  margin: 16px 0;
  font-size: 0.93rem;
}

.warning {
  background: #fff8e6;
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  margin: 16px 0;
  font-size: 0.93rem;
}

/* ── PHOTO + CAPTION ─────────────────────────────── */
.photo-block {
  margin: 20px 0;
  text-align: center;
}

.photo-block img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.photo-block figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ── RESOURCE LINKS ──────────────────────────────── */
.resource-list {
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0;
}

.resource-list li {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.resource-list li a { font-weight: 500; }
.resource-list .file-type {
  font-size: 0.72rem;
  background: var(--navy);
  color: #fff;
  border-radius: 3px;
  padding: 1px 5px;
  text-transform: uppercase;
}

/* ── STEP LIST ───────────────────────────────────── */
ol.steps { margin-left: 0; padding-left: 0; list-style: none; counter-reset: step; }
ol.steps li {
  counter-increment: step;
  padding: 10px 12px 10px 48px;
  position: relative;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
ol.steps li:first-child { border-radius: 6px 6px 0 0; }
ol.steps li:last-child  { border-bottom: none; border-radius: 0 0 6px 6px; }
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 640px) {
  .topnav nav a { font-size: 0.78rem; padding: 5px 8px; }
  .topnav .site-title { font-size: 1rem; margin-right: 16px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.4rem; }
}


/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.93rem;
}
th {
  background: var(--accent);
  color: #fff;
  text-align: left;
  padding: 8px 12px;
  font-weight: 600;
}
td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--bg); }
