/* ============================================================
   Cogan Guides — shared styles for /guides and /fr/guides
   Built for readability, featured-snippet extraction and AI citation:
   key-takeaways box, question H2s, spec tables, FAQ blocks.
   ============================================================ */

.guide-hero { position: relative; min-height: 340px; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.guide-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,28,36,.82) 0%, rgba(20,28,36,.15) 55%, rgba(20,28,36,0) 100%); }
.guide-hero .guide-hero-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 48px 24px 34px; width: 100%; }
.guide-hero h1 { color: #fff; font-size: 34px; line-height: 1.15; margin: 0 0 6px; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.guide-hero .guide-kicker { display: inline-block; background: #0085c3; color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 5px 12px; border-radius: 3px; margin-bottom: 14px; }

.guide-wrap { max-width: 900px; margin: 0 auto; padding: 34px 24px 70px; color: #2b3540; font-size: 16.5px; line-height: 1.7; }
.guide-wrap h2 { font-size: 24px; line-height: 1.25; color: #17222b; margin: 42px 0 14px; }
.guide-wrap h3 { font-size: 19px; color: #17222b; margin: 28px 0 10px; }
.guide-wrap p { margin: 0 0 16px; }
.guide-wrap ul, .guide-wrap ol { margin: 0 0 18px; padding-left: 24px; }
.guide-wrap li { margin: 6px 0; }
.guide-wrap a { color: #0085c3; text-decoration: underline; text-underline-offset: 2px; }
.guide-wrap a:hover { color: #006ea3; }
.guide-updated { color: #7a8691; font-size: 13.5px; margin-bottom: 22px; }

/* Key Takeaways summary box */
.guide-takeaways { background: #f2f8fc; border: 1px solid #cfe5f2; border-left: 5px solid #0085c3; border-radius: 8px; padding: 22px 26px; margin: 0 0 34px; }
.guide-takeaways h2 { font-size: 17px; letter-spacing: .1em; text-transform: uppercase; color: #006ea3; margin: 0 0 12px; }
.guide-takeaways ul { margin: 0; padding-left: 20px; }
.guide-takeaways li { margin: 8px 0; font-size: 15.5px; }

/* Definition-first lead */
.guide-definition { font-size: 18.5px; line-height: 1.65; color: #1d2833; }

/* Inline figures */
.guide-figure { margin: 30px 0; }
.guide-figure img { width: 100%; height: auto; border-radius: 8px; display: block; }
.guide-figure figcaption { font-size: 13.5px; color: #7a8691; margin-top: 8px; }

/* Spec / comparison tables */
.guide-table-scroll { overflow-x: auto; margin: 22px 0; }
.guide-wrap table.guide-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.guide-wrap table.guide-table th { background: #17384d; color: #fff; text-align: left; padding: 11px 14px; font-weight: 600; white-space: nowrap; }
.guide-wrap table.guide-table td { border: 1px solid #dbe3ea; padding: 10px 14px; vertical-align: top; }
.guide-wrap table.guide-table tr:nth-child(even) td { background: #f6f9fb; }

/* FAQ */
.guide-faq { margin-top: 8px; }
.guide-faq details { border: 1px solid #dbe3ea; border-radius: 8px; margin: 0 0 10px; background: #fff; }
.guide-faq summary { cursor: pointer; padding: 15px 18px; font-weight: 700; color: #17222b; font-size: 16px; list-style: none; position: relative; padding-right: 42px; }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #0085c3; font-weight: 400; }
.guide-faq details[open] summary::after { content: "\2212"; }
.guide-faq .faq-a { padding: 0 18px 16px; }
.guide-faq .faq-a p { margin: 0 0 10px; }

/* CTA */
.guide-cta { background: #17384d; border-radius: 10px; color: #dbe7ef; padding: 28px 30px; margin: 44px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.guide-cta .cta-txt { flex: 1 1 340px; }
.guide-cta .cta-txt h2 { color: #fff; margin: 0 0 6px; font-size: 21px; }
.guide-cta .cta-txt p { margin: 0; font-size: 15px; }
.guide-cta a.cta-btn { background: #0085c3; color: #fff; font-weight: 700; padding: 14px 28px; border-radius: 6px; text-decoration: none; white-space: nowrap; }
.guide-cta a.cta-btn:hover { background: #009de4; color: #fff; }

/* Related product links */
.guide-related { margin-top: 34px; padding-top: 22px; border-top: 1px solid #dbe3ea; }
.guide-related h2 { font-size: 17px; letter-spacing: .1em; text-transform: uppercase; color: #55636f; margin: 0 0 12px; }
.guide-related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.guide-related li { margin: 0; }
.guide-related a { display: inline-block; background: #f2f6f9; border: 1px solid #d5dfe7; border-radius: 999px; padding: 8px 16px; font-size: 14px; text-decoration: none; color: #17384d; }
.guide-related a:hover { border-color: #0085c3; color: #0085c3; }

/* Guides index cards */
.guides-index { max-width: 1100px; margin: 0 auto; padding: 40px 24px 70px; }
.guides-index .guides-intro { max-width: 760px; font-size: 17px; line-height: 1.65; color: #2b3540; margin-bottom: 34px; }
.guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.guide-card { border: 1px solid #dbe3ea; border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.guide-card:hover { border-color: #0085c3; box-shadow: 0 6px 20px rgba(0,80,120,.12); }
.guide-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.guide-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.guide-card .guide-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.guide-card h2 { font-size: 19px; margin: 0 0 8px; color: #17222b; line-height: 1.3; }
.guide-card p { font-size: 14.5px; color: #55636f; margin: 0 0 14px; line-height: 1.55; flex: 1; }
.guide-card .guide-card-link { color: #0085c3; font-weight: 700; font-size: 14.5px; }

@media (max-width: 640px) {
    .guide-hero { min-height: 240px; }
    .guide-hero h1 { font-size: 25px; }
    .guide-wrap { font-size: 15.5px; padding: 26px 16px 54px; }
    .guide-wrap h2 { font-size: 21px; }
    .guide-takeaways { padding: 18px 18px; }
    .guide-cta { padding: 22px 20px; }
}
