/* Guides (/guides/...). Builds on css/home.css tokens and css/pages.css legal layout. */

.guide-page .legal-hero { padding-bottom: 44px; }
.guide-page .legal-hero h1 { max-width: 900px; margin-left: auto; margin-right: auto; }
.guide-lede { max-width: 640px; margin: 18px auto 0; color: var(--muted); font-size: 17px; }

.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: var(--forest); font-weight: 600; }

/* The direct answer AI overviews quote — first thing in the article. */
.legal-card .guide-answer { margin: 0 0 30px; padding: 22px 24px; border-radius: 18px; background: var(--forest-soft); border: 1px solid var(--info-border); }
.guide-answer p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--forest-deeper); }
.guide-answer-tag { display: inline-block; margin-bottom: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest); }

.legal-card ol.steps { counter-reset: step; list-style: none; margin: 10px 0 20px; padding: 0; display: grid; gap: 12px; }
.legal-card ol.steps > li { counter-increment: step; position: relative; padding: 2px 0 2px 46px; color: var(--body-text); }
.legal-card ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px; transform: none;
  display: grid; place-items: center; background: var(--forest); border: 0; color: #fff; font-weight: 700; font-size: 14px;
}
.legal-card ol:not(.steps) { margin: 8px 0 18px; padding-left: 22px; color: var(--body-text); }

.guide-faq { display: grid; gap: 10px; margin: 6px 0 10px; }
.guide-faq details { border: 1px solid var(--divider); border-radius: 14px; background: #fff; }
.guide-faq summary { cursor: pointer; padding: 15px 18px; font-weight: 600; color: var(--text); list-style: none; }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { content: "+"; float: right; color: var(--forest); font-weight: 700; }
.guide-faq details[open] summary::after { content: "–"; }
.guide-faq details p { margin: 0; padding: 0 18px 16px; color: var(--body-text); }

.guide-cta { margin: 36px 0 8px; padding: 20px 22px; border-radius: 18px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #fff8e6, #f5faf3); border: 1px solid #ecdcae; }
.guide-cta strong { display: block; color: var(--forest-deeper); font-size: 16px; }
.guide-cta span { color: var(--muted); font-size: 14.5px; }
.guide-cta-btns { display: flex; gap: 10px; }
.legal-card .guide-cta-btns a { border: 0; padding: 10px 18px; border-radius: 999px; background: var(--forest); color: #fff; font-size: 14px; }
.legal-card .guide-cta-btns a:hover { background: var(--forest-deep); color: #fff; }

/* Hub */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; max-width: 1140px; margin: 0 auto; }
.guide-tile { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--divider);
  box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.guide-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.guide-tile h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--forest-deeper); }
.guide-tile p { color: var(--muted); font-size: 15px; line-height: 1.6; flex: 1; }
.guide-tile span { color: var(--forest); font-weight: 700; font-size: 14px; }

/* Converter */
.converter { margin: 0 0 30px; padding: 24px; border-radius: 20px; border: 1px solid var(--divider); background: #fbfdfb; }
.legal-card .converter h2 { margin-top: 0; }
.legal-card .converter h2::before { display: none; }
.conv-input { display: flex; gap: 10px; flex-wrap: wrap; }
.conv-input input, .conv-input select { flex: 1; min-width: 150px; padding: 13px 14px; border: 1px solid #cfdccb; border-radius: 12px; font: inherit; font-size: 16px; background: #fff; }
.conv-input input:focus, .conv-input select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.14); }
.conv-out { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 16px; }
.conv-out div { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--divider); }
.conv-out span { display: block; font-size: 12.5px; color: var(--muted); }
.conv-out b { font-size: 18px; color: var(--forest-deeper); }
.conv-out .conv-ag { background: var(--forest-soft); border-color: var(--info-border); }

@media (max-width: 640px) {
  .legal-card .guide-answer { padding: 18px; }
  .guide-cta-btns { width: 100%; }
  .legal-card .guide-cta-btns a { flex: 1; text-align: center; }
}

/* Home page FAQ (index.html #faq) */
.home-faq { max-width: 860px; margin: 0 auto; }
.home-faq details p { line-height: 1.7; }
.faq .section-header p a { color: var(--forest); font-weight: 600; }
.home-guides { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto 28px; }
.home-guides a { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--divider); color: var(--forest-deep);
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-sm); transition: border-color 0.2s, background-color 0.2s; }
.home-guides a:hover { border-color: var(--forest); background: var(--forest-soft); }
