@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-soft: #f0f5f2;
  --text: #17201e;
  --muted: #63706c;
  --line: #dce4df;
  --line-strong: #c9d5cf;
  --primary: #0b6b58;
  --primary-strong: #075344;
  --primary-soft: #dff1e9;
  --accent: #e9ae32;
  --accent-soft: #fff4d5;
  --coral: #d9654f;
  --sky-soft: #e6f0f6;
  --success: #167052;
  --warning: #9b5c0a;
  --danger: #b42318;
  --gold: #e9ae32;
  --silver: #aeb9c0;
  --bronze: #b76c3d;
  --shadow-sm: 0 1px 2px rgba(23, 32, 30, 0.05);
  --shadow: 0 8px 24px rgba(23, 32, 30, 0.07);
  --radius: 8px;
  --radius-sm: 6px;
  --page: min(1120px, calc(100vw - 40px));
  --font-body: "Inter", "Noto Sans Bengali", system-ui, sans-serif;
  --font-display: "Manrope", "Noto Sans Bengali", system-ui, sans-serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-strong);
}

img,
svg {
  display: block;
  max-width: 100%;
}

.lucide {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  stroke-width: 2.1;
}

i[data-lucide] {
  width: 19px;
  height: 19px;
  display: inline-block;
  flex: 0 0 auto;
}

:focus-visible {
  outline: 3px solid rgba(11, 107, 88, 0.28);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(220, 228, 223, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: var(--page);
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.mobile-header-context {
  display: none;
}

.page-shell {
  width: var(--page);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.intro-block {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: 0 0 22px;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.2;
  font-weight: 800;
}

h3 {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 750;
}

.lead {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.notice strong {
  color: var(--text);
}

.notice.warning {
  border-left-color: var(--accent);
}

.notice.compact {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 0.82rem;
}

.notice.compact .lucide {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--primary);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  overflow-x: auto;
  color: var(--muted);
  font-size: 0.8rem;
  scrollbar-width: none;
  white-space: nowrap;
}

.breadcrumb::-webkit-scrollbar {
  display: none;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 650;
  text-decoration: none;
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.section {
  margin-top: 30px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 3px;
}

.segmented-control button,
.segmented-control a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.segmented-control button.is-active,
.segmented-control button[aria-pressed="true"],
.segmented-control a.is-active {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

.button,
button.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  padding: 9px 15px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button.button:hover {
  background: var(--primary-strong);
  color: #fff;
}

.button.secondary,
button.button.secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.button.secondary:hover,
button.button.secondary:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.button.ghost,
button.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--primary);
}

.button.small,
button.button.small {
  min-height: 38px;
  padding: 7px 11px;
  font-size: 0.84rem;
}

.button.icon-only,
button.button.icon-only {
  width: 44px;
  padding: 0;
}

.button:disabled,
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 750;
}

.badge.gold {
  background: var(--accent-soft);
  color: #745200;
}

.badge.silver {
  background: #edf0f2;
  color: #536068;
}

.badge.bronze {
  background: #f5e5da;
  color: #734221;
}

.status-box {
  display: grid;
  gap: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  color: var(--muted);
}

.status-box.error {
  border-color: rgba(180, 35, 24, 0.3);
  background: #fff8f7;
  color: #7a271a;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  width: var(--page);
  margin: 0 auto;
  padding: 24px 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  font-weight: 650;
  text-decoration: none;
}

.mobile-nav {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  :root {
    --page: calc(100vw - 24px);
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
    font-size: 15px;
  }

  .header-inner {
    min-height: 58px;
  }

  .brand {
    gap: 8px;
    font-size: 0.96rem;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .site-nav {
    display: none;
  }

  .mobile-header-context {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    padding: 4px 9px;
    color: var(--primary-strong);
    font-size: 0.72rem;
    font-weight: 700;
  }

  .page-shell {
    padding: 18px 0 36px;
  }

  .breadcrumb {
    margin-bottom: 13px;
    font-size: 0.75rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .lead {
    font-size: 0.94rem;
  }

  .site-footer {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    min-height: calc(64px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    padding: 5px 8px env(safe-area-inset-bottom);
    box-shadow: 0 -8px 24px rgba(23, 32, 30, 0.08);
    backdrop-filter: blur(14px);
  }

  .mobile-nav > a,
  .mobile-nav summary {
    min-width: 0;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav > a.is-active,
  .mobile-more.is-active summary {
    background: var(--primary-soft);
    color: var(--primary-strong);
  }

  .mobile-nav .lucide {
    width: 21px;
    height: 21px;
  }

  .mobile-more {
    position: relative;
  }

  .mobile-more-menu {
    position: fixed;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: min(240px, calc(100vw - 24px));
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 8px;
  }

  .mobile-more-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    color: var(--text);
    font-weight: 650;
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
