/* Shared styling for the AutoMe articles hub + article pages.
   Static, crawlable content pages (no app bundle dependency). RTL Hebrew.
   Brand teal #2DA88A. Matches the look of privacy/contact static pages. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Rubik', 'Heebo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #1a2733;
  background: #f5f7fa;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

/* ---- Site header ---- */
.site-header {
  text-align: center;
  padding: 20px 0 24px;
  border-bottom: 1px solid #dde3ea;
  margin-bottom: 24px;
}
.site-header a.logo {
  text-decoration: none;
  color: #2DA88A;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.04em;
}
.site-header .tagline {
  display: block;
  margin-top: 4px;
  color: #6b7a89;
  font-size: 14px;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 13px;
  color: #6b7a89;
  margin-bottom: 20px;
}
.breadcrumb a { color: #2DA88A; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; opacity: 0.6; }

/* ---- Article typography ---- */
h1 {
  font-size: 30px;
  line-height: 1.3;
  margin: 0 0 12px;
  color: #0e1620;
  font-weight: 800;
}
.article-meta {
  color: #6b7a89;
  font-size: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dde3ea;
}
.lead {
  font-size: 19px;
  color: #36454f;
  margin: 0 0 28px;
  font-weight: 500;
}
article h2 {
  font-size: 23px;
  margin: 36px 0 14px;
  color: #0e1620;
  font-weight: 700;
}
article h3 {
  font-size: 19px;
  margin: 26px 0 10px;
  color: #1a2733;
  font-weight: 700;
}
article p { margin: 0 0 16px; }
article ul, article ol { margin: 0 0 18px; padding-right: 24px; }
article li { margin-bottom: 8px; }
article strong { color: #0e1620; font-weight: 700; }
article a { color: #2DA88A; }

/* ---- Callout box ---- */
.callout {
  background: #e9f7f3;
  border-right: 4px solid #2DA88A;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 16px;
}
.callout.warn {
  background: #fff5e6;
  border-right-color: #f59e0b;
}
.callout .callout-title { font-weight: 800; margin-bottom: 4px; color: #0e1620; }

/* ---- Comparison / info table ---- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.info-table th, .info-table td {
  text-align: right;
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f6;
}
.info-table th {
  background: #2DA88A;
  color: #fff;
  font-weight: 700;
}
.info-table tr:last-child td { border-bottom: none; }

/* ---- In-app CTA box ---- */
.app-cta {
  background: linear-gradient(135deg, #2DA88A, #258A72);
  color: #fff;
  border-radius: 16px;
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}
.app-cta h3 { color: #fff; margin: 0 0 8px; font-size: 20px; }
.app-cta p { color: rgba(255,255,255,0.92); margin: 0 0 16px; font-size: 15px; }
.app-cta a.cta-btn {
  display: inline-block;
  background: #fff;
  color: #1C6E5B;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
}

/* ---- FAQ ---- */
.faq { margin: 24px 0; }
.faq-item {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq-item .q { font-weight: 700; color: #0e1620; margin-bottom: 6px; }
.faq-item .a { color: #4a5868; font-size: 16px; margin: 0; }

/* ---- Related articles ---- */
.related {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid #dde3ea;
}
.related h2 { font-size: 20px; margin: 0 0 16px; }
.related-list { display: grid; gap: 12px; }
.related-card {
  display: block;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: #0e1620;
  transition: transform 0.12s, box-shadow 0.12s;
}
.related-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.related-card .rc-title { font-weight: 700; font-size: 16px; }
.related-card .rc-desc { color: #6b7a89; font-size: 14px; margin-top: 4px; }

/* ---- Hub (index) cards ---- */
.hub-intro { margin-bottom: 32px; }
.hub-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
.hub-card {
  display: block;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: #0e1620;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.12s, box-shadow 0.12s;
}
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.10); }
.hub-card .hub-icon { font-size: 32px; }
.hub-card .hub-title { font-weight: 800; font-size: 18px; margin: 10px 0 6px; }
.hub-card .hub-desc { color: #6b7a89; font-size: 15px; line-height: 1.6; }

/* ---- Footer ---- */
.back {
  display: inline-block;
  margin-top: 36px;
  padding: 10px 24px;
  background: transparent;
  color: #2DA88A;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid #2DA88A;
}
.back:hover { background: #2DA88A; color: #fff; }
.site-footer {
  text-align: center;
  padding: 24px 0;
  margin-top: 48px;
  border-top: 1px solid #dde3ea;
  color: #6b7a89;
  font-size: 13px;
}
.site-footer a { color: #6b7a89; margin: 0 8px; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* =====================================================================
   Side navigation drawer — pure CSS (checkbox hack), crawler-safe.
   All nav links live in static HTML; no JS required to open/close.
   Prefixed `am-nav-` to avoid collisions with the app bundle styles.
   ===================================================================== */
.am-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.am-nav-burger {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1200;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 12px;
  font-size: 22px;
  color: #2DA88A;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  user-select: none;
}

.am-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  z-index: 1300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
  cursor: pointer;
}

.am-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1400;
  width: 280px;
  max-width: 84vw;
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 30px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  padding-bottom: 24px;
  direction: rtl;
}

.am-nav-toggle:checked ~ .am-nav-drawer { transform: translateX(0); }
.am-nav-toggle:checked ~ .am-nav-backdrop { opacity: 1; visibility: visible; }

.am-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #eef2f6;
  position: sticky;
  top: 0;
  background: #fff;
}
.am-nav-logo {
  font-weight: 800;
  font-size: 22px;
  color: #2DA88A;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.am-nav-close {
  font-size: 22px;
  color: #6b7a89;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  user-select: none;
}
.am-nav-close:hover { color: #0e1620; }

.am-nav-link {
  display: block;
  padding: 12px 20px;
  color: #1a2733;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid #f4f6f9;
}
.am-nav-link:hover { background: #f0faf7; color: #2DA88A; }

.am-nav-group {
  padding: 14px 20px 6px;
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* =====================================================================
   Popular-guides cards block (used on the landing page section)
   ===================================================================== */
.pop-guides-grid { display: grid; gap: 12px; }
@media (min-width: 600px) { .pop-guides-grid { grid-template-columns: 1fr 1fr; } }
.pop-guide-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: #0e1620;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.12s, box-shadow 0.12s;
}
.pop-guide-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.pop-guide-card .pg-icon { font-size: 26px; flex-shrink: 0; }
.pop-guide-card .pg-title { font-weight: 700; font-size: 15px; }
.pop-guide-card .pg-desc { color: #6b7a89; font-size: 13px; margin-top: 2px; }

/* =====================================================================
   Responsive — mobile-first base above; widen + reflow on larger screens
   so content pages use the desktop width instead of a narrow mobile column,
   while keeping text at a comfortable centered measure.
   ===================================================================== */
@media (min-width: 768px) {
  .container { max-width: 800px; padding: 32px 32px 80px; }
  body { font-size: 18px; line-height: 1.85; }
  h1 { font-size: 34px; }
  article h2 { font-size: 25px; }
  /* Term/Q&A cards flow into two columns on wider screens. */
  .faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .related-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .container { max-width: 940px; }
  /* Listing grids get a third column on wide desktops. */
  .hub-grid { grid-template-columns: 1fr 1fr 1fr; }
}
