/* Shared styling for the /guides/ pages.
   Same chrome as the en/ knowledge pages (nav, footer, cards), pulled into one
   file so the three guide pages stay identical. Colours are the site greens
   used across en/: #1B5E20 deep, #2e7d32 brand, #66bb6a light. */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #ffffff; color: #2c3e50; line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

nav { position: fixed; top: 0; width: 100%; background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); z-index: 1000; padding: 1rem 0; border-bottom: 1px solid rgba(46,125,50,0.1); }
.nav-container { display: flex; flex-direction: column; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 10px; gap: 0.5rem; }
.nav-main { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.language-selector-dropdown { position: relative; }
.language-selector { background: none; border: 2px solid #4A148C; color: #4A148C; padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; font-size: 0.9rem; font-weight: 500; }
.language-selector:hover { background: #4A148C; color: white; }
.language-menu { position: absolute; top: 100%; right: 0; background: white; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); min-width: 120px; z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; }
.language-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
.language-menu a { display: block; padding: 0.75rem 1rem; color: #333; text-decoration: none; font-size: 0.9rem; border-bottom: 1px solid #eee; }
.language-menu a:last-child { border-bottom: none; }
.language-menu a:hover { background: #f5f5f5; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, #1B5E20, #76FF03); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; position: relative; top: -15px; }
.logo-text { font-family: 'Roboto Slab', serif; font-size: 1.5rem; font-weight: 600; color: #2e7d32; }
.logo-tagline { font-family: Arial, sans-serif; font-size: 0.65rem; font-weight: 400; color: #666; margin-top: 2px; line-height: 1.2; text-align: left; }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { color: #2c3e50; text-decoration: none; font-weight: 500; position: relative; }
.nav-links a:hover { color: #2e7d32; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background: #2e7d32; transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }
.mobile-menu { display: none; background: none; border: none; color: #2c3e50; font-size: 1.5rem; cursor: pointer; }

.main-content { padding-top: 8rem; min-height: 100vh; background: linear-gradient(135deg, rgba(27,94,32,0.05) 0%, rgba(118,255,3,0.05) 50%, rgba(255,111,0,0.05) 100%); padding-bottom: 4rem; }
.crumbs { color: #475569; font-size: 0.95rem; margin-bottom: 0.75rem; }
.crumbs a { color: #2e7d32; text-decoration: none; font-weight: 500; }
.page-title { font-family: 'Roboto Slab', serif; font-size: 2.6rem; font-weight: 700; color: #1B5E20; margin-bottom: 0.5rem; }
.page-subtitle { font-size: 1.1rem; color: #475569; margin-bottom: 2rem; max-width: 760px; }
.section-h { font-family: 'Roboto Slab', serif; color: #1B5E20; font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.lead { max-width: 760px; margin-bottom: 1rem; }
.note { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1rem 1.25rem; margin: 1rem 0; color: #475569; font-size: 0.95rem; }
.note.warn { border-left: 4px solid #f59e0b; }

/* Videos at the top of a guide */
.video-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0.5rem 0 1.5rem; }
.video-row figure { margin: 0; }
.howto-video { display: block; width: 100%; border-radius: 12px; background: #000; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.video-row figcaption { font-size: 0.9rem; color: #64748b; margin-top: 0.5rem; }

/* Index tiles */
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.res-card { background: white; border-radius: 12px; padding: 1.75rem; border: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(0,0,0,0.05); display: flex; flex-direction: column; }
.res-card .res-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #2e7d32, #66bb6a); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.3rem; margin-bottom: 1rem; }
.res-card h3 { font-family: 'Roboto Slab', serif; color: #1B5E20; font-size: 1.2rem; margin-bottom: 0.5rem; }
.res-card p { color: #475569; font-size: 0.95rem; flex: 1; }
.res-card a.more { display: inline-block; margin-top: 1rem; color: #2e7d32; font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.res-card a.more:hover { text-decoration: underline; }
.res-card .meta { font-size: 0.85rem; color: #64748b; margin-top: 0.75rem; }

/* Step-by-step guide body */
.steps { counter-reset: step; list-style: none; max-width: 760px; }
.steps > li { position: relative; padding: 0 0 1.75rem 3.5rem; }
.steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #2e7d32; color: white; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.steps > li::after { content: ''; position: absolute; left: 1.2rem; top: 2.6rem; bottom: 0.25rem; width: 2px; background: rgba(46,125,50,0.2); }
.steps > li:last-child::after { display: none; }
.steps h3 { font-family: 'Roboto Slab', serif; color: #1B5E20; font-size: 1.15rem; margin: 0.35rem 0 0.4rem; }
.steps p, .steps ul { margin-bottom: 0.5rem; color: #334155; }
.steps ul { margin-left: 1.25rem; }
.steps code, .kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #f1f5f9; padding: 0.1rem 0.4rem; border-radius: 6px; font-size: 0.92em; color: #1B5E20; }

.checklist { list-style: none; max-width: 760px; background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1rem 1.25rem; }
.checklist li { padding: 0.35rem 0 0.35rem 1.75rem; position: relative; color: #334155; }
.checklist li::before { content: '\f14a'; font-family: 'Font Awesome 6 Free'; font-weight: 400; color: #2e7d32; position: absolute; left: 0; }

.quickref { background: linear-gradient(135deg, #e8f5e9, #f0fdf4); border-left: 4px solid #2e7d32; border-radius: 12px; padding: 1.5rem 1.75rem; margin: 2rem 0; max-width: 760px; }
.quickref h3 { font-family: 'Roboto Slab', serif; color: #1B5E20; margin-bottom: 0.5rem; }
.quickref ul { margin-left: 1.25rem; color: #1B5E20; }
.quickref li { margin: 0.4rem 0; }

.std-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); font-size: 0.95rem; }
.std-table th, .std-table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.std-table th { background: #1B5E20; color: white; font-weight: 600; font-size: 0.9rem; }
.std-table tbody tr:last-child td { border-bottom: none; }
.std-table a { color: #2e7d32; font-weight: 600; text-decoration: none; }
.std-table a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; background: #2e7d32; color: white; padding: 0.7rem 1.2rem; border-radius: 8px; text-decoration: none; font-weight: 600; margin: 0.5rem 0.5rem 0.5rem 0; }
.btn:hover { background: #1B5E20; }
.btn.secondary { background: white; color: #1B5E20; border: 1px solid #1B5E20; }
.btn.secondary:hover { background: #f0fdf4; }

details { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 0.9rem 1.25rem; margin: 0.6rem 0; max-width: 760px; }
details summary { cursor: pointer; font-weight: 600; color: #1B5E20; }
details p { margin-top: 0.5rem; color: #334155; }

footer { background: #1B5E20; color: white; padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { font-family: 'Roboto Slab', serif; margin-bottom: 1rem; font-size: 1.1rem; }
.footer-section p { margin: 0.4rem 0; opacity: 0.9; }
.footer-section a { color: white; text-decoration: none; opacity: 0.85; }
.footer-section a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); opacity: 0.8; font-size: 0.9rem; }

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(255,255,255,0.98); flex-direction: column; padding: 1rem; gap: 1rem; }
  .nav-links.active { display: flex; }
  .mobile-menu { display: block; }
  .page-title { font-size: 2rem; }
  .steps > li { padding-left: 3rem; }
}
