/* Guide MacBook.it – Informational hub: DM Serif Display + Source Sans 3, teal accent */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  color: #1e293b;
  background: #f8fafc;
  padding-top: 64px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: #0d9488;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.logo {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: #0f172a;
  text-decoration: none;
}
.logo:hover { color: #0d9488; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-list a {
  color: #475569;
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
}
.nav-list a:hover { color: #0d9488; background: #f0fdfa; }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span { width: 22px; height: 2px; background: #475569; border-radius: 1px; transition: transform .2s, opacity .2s; }
body.menu-open { overflow: hidden; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 800px) {
  .nav {
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: #fff;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform .3s;
    overflow-y: auto;
    border-left: 1px solid #e2e8f0;
  }
  .nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid #e2e8f0; }
  .nav-list a { padding: 1rem; display: block; }
  .menu-toggle { display: flex; }
}

/* Main */
.main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}
.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #64748b;
}
.breadcrumb a { color: #0d9488; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Typography */
h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  color: #0f172a;
}
h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  margin: 1.75rem 0 0.6rem;
  color: #1e293b;
}
h3 { font-size: 1.05rem; font-weight: 600; margin: 1.2rem 0 0.5rem; }
p { margin: 0.75rem 0; }
ul, ol { margin: 0.5rem 0; padding-left: 1.5rem; }
a { color: #0d9488; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0f172a 100%);
  color: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin: 0 -1.5rem 2rem -1.5rem;
  border-radius: 0 0 12px 12px;
}
.hero h1 { color: #fff; margin-bottom: 0.5rem; }
.hero p { color: rgba(255,255,255,.9); margin-bottom: 1.25rem; }

/* Cards & grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.card-grid a {
  display: block;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #1e293b;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.card-grid a:hover { border-color: #0d9488; box-shadow: 0 4px 12px rgba(13,148,136,.12); }

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.article-content th,
.article-content td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border: 1px solid #e2e8f0;
}
.article-content th { background: #f1f5f9; font-weight: 600; }

/* FAQ */
.faq { margin: 1rem 0; padding: 1.25rem; background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #0d9488; border-radius: 8px; }
.faq h3 { font-size: 1rem; margin-top: 0; }
.info-box {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  padding: 1.25rem;
  border-radius: 10px;
  margin: 1rem 0;
}

/* Footer */
.footer {
  background: #0f172a;
  color: rgba(255,255,255,.85);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}
.footer-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.footer a { color: #5eead4; }
.footer a:hover { color: #99f6e4; }
.footer-nav { margin: 1rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; }
.footer-nav a { font-size: 0.9rem; }
.footer-partners { font-size: 0.85rem; margin-top: 1rem; color: rgba(255,255,255,.6); }
.related, .footer-note { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; font-size: 0.9rem; color: #64748b; }
