/* layout.css — nav, footer, ad slots, page wrap, sidebar */

/* ── Nav ── */
nav {
  background: var(--ink);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--amber);
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: #aaa;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* ── Ad slots ── */
.ad-banner {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ad-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* ── Main ── */
main {
  flex: 1;
}

/* ── Footer ── */
footer {
  background: var(--ink);
  color: #666;
  font-size: 12px;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

footer a {
  color: #888;
  text-decoration: none;
}

footer a:hover {
  color: #ccc;
}

/* ── Page wrap ── */
.page-wrap {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.1;
}

.page-header p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

/* ── Sidebar tips ── */
.sidebar-tips {
  background: var(--amber-lt);
  border: 1px solid #f0d090;
  border-radius: 10px;
  padding: 20px;
}

.sidebar-tips h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--amber);
  margin-bottom: 10px;
}

.sidebar-tips ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-tips li {
  font-size: 13px;
  color: #6b4a00;
  line-height: 1.45;
  padding-left: 16px;
  position: relative;
}

.sidebar-tips li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 11px;
  top: 1px;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
