/* Guide and district pages — builds on styles.css and legal.css */
.seo-top-actions { display: flex; align-items: center; gap: 8px; }
.seo-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #8ea0bc; margin-bottom: 14px; }
.seo-crumbs a { color: #b9c6db; }
.seo-crumbs a:hover { color: #fff; }
.lg-hero p { max-width: 68ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-actions .btn .ui-icon { width: 16px; height: 16px; }
.btn.on-dark { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.btn.on-dark:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }

.seo-page .lg-doc .callout { margin-bottom: 4px; font-size: 14.5px; }
.seo-page .lg-doc .muted { color: var(--muted); font-size: 13.5px; }
.seo-wide .lg-doc { max-width: none; }
.seo-page .lg-doc td:nth-child(3) { white-space: nowrap; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 22px 0 8px; }
.guide-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.guide-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.guide-card strong { font-size: 15.5px; color: var(--ink); }
.guide-card span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.faq { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: 15.5px; color: var(--ink); list-style-position: inside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details > div { padding: 12px 16px 14px; }

.lg-doc ul.sitemap-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 24px; }
.lg-doc ul.sitemap-list [lang="bn"] { font-family: "Noto Sans Bengali", var(--font); }

.guide-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--primary-ink); }

/* Pages without the side column (tutorials) */
.lg-layout.seo-full { display: block; max-width: 1180px; }
.seo-full .lg-doc { max-width: none; }
.seo-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.seo-jump a { padding: 7px 13px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.seo-jump a:hover { border-color: var(--primary); color: var(--primary-ink); text-decoration: none; }
.seo-full .tut-steps figure { max-width: 980px; }

/* Tutorials */
.lg-doc ol.tut-steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 30px; }
.tut-steps li { scroll-margin-top: 84px; }
.lg-doc .tut-steps h3 { font-size: 17.5px; margin: 0 0 6px; }
.tut-no { display: inline-block; margin-right: 6px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--primary-soft); color: var(--primary-ink); font-size: 12.5px; font-weight: 700; vertical-align: 2px; }
.tut-steps figure { margin: 14px 0 0; }
.tut-steps img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-sm); background: #fff; }
.tut-steps figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
.tut-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px !important; }
.lg-doc .tut-links a.btn { text-decoration: none; color: #fff; }

/* Header: Android app download, highlighted (shimmer + soft pulse) on every screen size */
.app-dl { --btn-h: 40px; padding: 0 14px; gap: 8px; border: 0; color: #231600; font-weight: 700; white-space: nowrap; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #f3d48a, var(--accent, #e4bd74) 55%, #d9a94f); box-shadow: 0 1px 2px rgba(11, 26, 48, .12), 0 0 0 0 rgba(228, 189, 116, .55);
  animation: appDlPulse 2.6s ease-in-out infinite; }
.app-dl::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-110%); animation: appDlShine 2.6s ease-in-out infinite; }
.app-dl:hover { background: linear-gradient(135deg, #f6dc9c, #e9c67f 55%, #deb05a); text-decoration: none; }
.app-dl .ui-icon { width: 20px; height: 20px; flex: none; color: #2a7a3b; }
.app-dl .app-dl-long { display: inline-flex; flex-direction: column; line-height: 1.1; text-align: left; }
.app-dl .app-dl-long small { font-family: "Noto Sans Bengali", var(--font); font-size: 10.5px; font-weight: 600; opacity: .85; }
.app-dl .app-dl-short { display: none; }
@keyframes appDlPulse { 0%, 100% { box-shadow: 0 1px 2px rgba(11, 26, 48, .12), 0 0 0 0 rgba(228, 189, 116, .6); } 50% { box-shadow: 0 1px 2px rgba(11, 26, 48, .12), 0 0 0 7px rgba(228, 189, 116, 0); } }
@keyframes appDlShine { 0%, 55% { transform: translateX(-110%); } 85%, 100% { transform: translateX(110%); } }
@media (max-width: 900px) { .app-dl { --btn-h: 38px; padding: 0 11px; } }
@media (max-width: 600px) {
  .app-dl { --btn-h: 40px; padding: 0 10px; gap: 6px; font-size: 13px; }
  .app-dl .app-dl-long { display: none; }
  .app-dl .app-dl-short { display: inline; }
  #login-btn { padding-inline: 12px; }
  #login-btn > span { display: none; }       /* icon-only login; the icon is a person, the button keeps its aria-label */
  #theme-toggle { display: none; }           /* theme is also under Preferences; makes room for the app link */
  .auth-box { margin-left: auto; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .app-dl, .app-dl::after { animation: none; } }

/* Home page: crawlable links to the guides and districts */
.guides-section .guide-grid { margin-top: 0; }
.guides-section .guide-card { background: var(--surface); }
.district-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.district-links a { padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; color: var(--ink-2); }
.district-links a:hover { border-color: var(--primary); color: var(--primary-ink); text-decoration: none; }

/* Bengali shown beside English on the home page */
.bn { font-family: "Noto Sans Bengali", var(--font); font-weight: 500; letter-spacing: 0; color: var(--primary-ink); }
h2 .bn, h3 .bn { font-size: .72em; margin-left: 8px; white-space: nowrap; }
.svc-text .bn { font-size: 12.5px; line-height: 1.5; }
.guide-card span.bn { font-size: 13px; color: var(--primary-ink); }
.steps-strip strong .bn { display: block; font-size: 13px; margin-top: 2px; }
.hero-title-bn { font-family: "Noto Sans Bengali", var(--font); font-size: clamp(17px, 2vw, 22px); font-weight: 600; color: #e6d7a8; margin-top: 12px; }
.hero-sub.hero-sub-bn { font-family: "Noto Sans Bengali", var(--font); margin-top: 8px; line-height: 1.8; }
.hero-quick [lang="bn"] { font-family: "Noto Sans Bengali", var(--font); }

html[lang="bn"] body, html[lang="bn"] .lg-hero h1, html[lang="bn"] .lg-doc h2 { font-family: "Noto Sans Bengali", var(--font); letter-spacing: 0; }
html[lang="bn"] .lg-doc p, html[lang="bn"] .lg-doc li { line-height: 1.9; }

@media (max-width: 600px) {
  .seo-top-actions .lg-back span { display: inline; }
  .guide-grid { grid-template-columns: 1fr; }
}
@media print { .hero-actions, .seo-crumbs, .seo-top-actions { display: none !important; } }
