@charset "UTF-8";

/* Public marketing shell — آکادمی نقشه‌برداری / ژئوتست */

html.shell-web,
body.shell-web {
  --site-ink: #0b2e2c;
  --site-ink-soft: #1f4542;
  --site-muted: #5a736f;
  --site-accent: #0f766e;
  --site-accent-deep: #0c5c56;
  --site-mist: #eef4f2;
  --site-panel: rgba(255, 255, 255, 0.72);
  --site-line: rgba(11, 46, 44, 0.08);
  --site-shadow: 0 10px 30px rgba(11, 46, 44, 0.06);
  --site-max: 1040px;
  --site-pad: clamp(18px, 3.5vw, 28px);
  --r: 8px;
  --site-map:
    linear-gradient(rgba(11, 46, 44, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 46, 44, 0.028) 1px, transparent 1px),
    radial-gradient(900px 480px at 12% -8%, rgba(15, 118, 110, 0.14), transparent 60%),
    radial-gradient(700px 400px at 96% 8%, rgba(13, 148, 136, 0.08), transparent 55%),
    linear-gradient(180deg, #e9f1ef 0%, #eef4f2 38%, #ebf0f1 100%);
  --site-map-size: 56px 56px, 56px 56px, auto, auto, auto;
}

html.shell-web {
  width: 100%;
  overflow-x: clip;
  background: var(--site-mist);
  background-image: var(--site-map);
  background-size: var(--site-map-size);
  background-attachment: fixed;
}

body.shell-web {
  color: var(--site-ink);
  background: transparent;
  font-family: "Vazirmatn", "Tahoma", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: none;
  overflow-x: clip;
  margin: 0;
  min-height: 100%;
}

body.shell-web .app-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  pointer-events: none;
  background-image: var(--site-map);
  background-size: var(--site-map-size);
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
  background-position: 0 0, 0 0, 0 0, 100% 0, 0 0;
}

body.shell-web #app,
body.shell-web .app.shell-web {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

body.shell-web #site-chrome {
  flex-shrink: 0;
}

body.shell-web .main {
  max-width: var(--site-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(22px, 4vw, 40px) var(--site-pad) calc(var(--r) * 4 + env(safe-area-inset-bottom, 0px));
  flex: 1 0 auto;
  min-height: 0;
}

body.shell-web .topbar,
body.shell-web .bottom-nav { display: none !important; }

/* Nav — fully transparent over map (no bar / cut) */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}
.site-nav-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 18px var(--site-pad) 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.site-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--site-ink);
  line-height: 1.2;
  /* Space before horizontal menu (desktop). Reset on mobile grid. */
  margin-inline-end: 10px;
  flex: 0 0 auto;
}
.site-brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 0;
  flex: 0 0 auto;
  display: block;
  background: transparent;
  border: 0;
  outline: none;
}
.site-brand-main {
  font-weight: 800;
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-brand-sub { display: none; }
.site-links {
  display: flex;
  flex: 1 1 auto;
  gap: 2px;
  flex-wrap: nowrap;
  align-items: center;
  min-width: 0;
  justify-content: flex-start;
}
.site-link {
  text-decoration: none;
  color: var(--site-muted);
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: color 0.18s ease, background 0.18s ease;
}
.site-link:hover { color: var(--site-ink); background: rgba(255, 255, 255, 0.35); }
.site-link.is-active {
  color: var(--site-accent-deep);
  background: rgba(255, 255, 255, 0.5);
  font-weight: 700;
}
.site-link--admin {
  color: var(--site-accent-deep);
  font-weight: 700;
}
.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-inline-start: auto;
}
.site-cta {
  white-space: nowrap;
  flex: 0 0 auto;
  margin: 0;
}
.site-menu-btn {
  display: none;
  appearance: none;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(11, 46, 44, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--site-ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-menu-btn:hover {
  background: #fff;
  border-color: rgba(15, 118, 110, 0.28);
}
.site-menu-btn-bars,
.site-menu-btn-bars::before,
.site-menu-btn-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-menu-btn-bars::before,
.site-menu-btn-bars::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
}
.site-menu-btn-bars::before { top: -6px; }
.site-menu-btn-bars::after { top: 6px; }
.site-nav.is-menu-open .site-menu-btn-bars {
  background: transparent;
}
.site-nav.is-menu-open .site-menu-btn-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.site-nav.is-menu-open .site-menu-btn-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Buttons */
.site-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; font: inherit; font-size: 0.9rem; font-weight: 700;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.site-btn--primary {
  background: var(--site-accent); color: #f7fffe;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.22);
}
.site-btn--primary:hover { background: var(--site-accent-deep); transform: translateY(-1px); }
.site-btn--secondary,
.site-btn--ghost {
  background: rgba(255, 255, 255, 0.55); color: var(--site-ink); border-color: var(--site-line);
}
.site-btn--secondary:hover,
.site-btn--ghost:hover {
  background: #fff; border-color: rgba(15, 118, 110, 0.22); color: var(--site-accent);
}
.site-btn--sm { padding: 6px 12px; font-size: 0.82rem; }
.site-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.site-pager {
  margin-top: 28px;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.site-pager-meta {
  margin: 0;
  font-size: 0.84rem;
  color: var(--site-muted);
}
.site-pager-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.site-pager-controls .site-btn {
  min-width: 2.5rem;
}

.site-pill,
body.shell-web .pill {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  background: rgba(15, 118, 110, 0.1); color: var(--site-accent-deep);
  border: none;
}
.site-pill.is-paid,
body.shell-web .pill.is-muted {
  background: rgba(11, 46, 44, 0.06); color: var(--site-muted);
}

/* Motion */
@keyframes siteIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.site-page { animation: siteIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.site-card,
.site-feature {
  animation: siteIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .site-page, .site-card, .site-feature { animation: none; }
  .site-btn, .site-card, .site-feature { transition: none; }
}

/* Hero — seamless with page (no separate slab / cut) */
.site-hero {
  position: relative;
  isolation: isolate;
  overflow: visible;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(28px, 5vw, 56px) 0 clamp(16px, 2.5vw, 28px);
  background: none;
}
.site-hero::before { display: none; }
.site-hero-glow {
  position: absolute;
  inset: 0 10% auto;
  height: 55%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, rgba(15, 118, 110, 0.14), transparent 70%);
  filter: blur(20px);
}
.site-hero-brand {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5.2vw, 2.85rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--site-ink);
}
.site-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 600;
  color: var(--site-ink-soft);
  line-height: 1.55;
}
.site-hero-lead {
  max-width: 32rem;
  margin: 0 auto 28px;
  color: var(--site-muted);
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  line-height: 1.75;
}
.site-hero-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}

/* Sections & grids */
.site-section { margin: calc(var(--r) * 4.5) 0; }
.site-hero + .site-section {
  margin-top: calc(var(--r) * 1.25);
}
.site-section-head,
.site-list-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: calc(var(--r) * 1.75); flex-wrap: wrap;
}
.site-list-head {
  flex-direction: column; align-items: flex-start; margin-top: calc(var(--r) * 2);
}
.site-section-head h2,
.site-page-title {
  margin: 0; font-size: clamp(1.12rem, 2vw, 1.28rem); font-weight: 800;
  color: var(--site-ink); letter-spacing: -0.02em;
}
.site-section-head a {
  color: var(--site-accent); text-decoration: none; font-size: 0.86rem; font-weight: 600;
}
.site-section-head a:hover { text-decoration: underline; }
.site-list-lead {
  margin: 6px 0 0; color: var(--site-muted); font-size: 0.94rem; max-width: 38rem;
}
.site-grid,
.site-grid--blog,
.site-feature-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.site-feature-grid { gap: 12px; }
@media (min-width: 640px) {
  .site-feature-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.site-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--site-panel); border: 1px solid var(--site-line);
  border-radius: 16px; overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.site-card:hover { transform: translateY(-2px); box-shadow: var(--site-shadow); }
.site-card-cover {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #d5e4e1;
}
.site-card-cover--empty {
  background:
    radial-gradient(circle at 30% 30%, rgba(15, 118, 110, 0.22), transparent 55%),
    linear-gradient(135deg, #c8ddd9, #e0ebe8);
}
.site-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.site-card-body h3 {
  margin: 0 0 6px; font-size: 0.98rem; font-weight: 700; color: var(--site-ink); line-height: 1.45;
}
.site-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}
.site-card-date {
  color: var(--site-muted);
  font-size: 0.75rem;
  font-weight: 500;
}
.site-card-label {
  margin-inline-start: auto;
  color: #0f9d58;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
}
.site-article > .site-card-label { display: inline-block; margin: 0 0 10px; }
.intro-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--site-ink);
}
.intro-filter select {
  min-width: 180px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--site-line);
  background: var(--site-panel);
  color: var(--site-ink);
  font: inherit;
  font-weight: 600;
}
body.shell-web .question-panel .q-meta-grid,
body.shell-web-app .question-panel .q-meta-grid {
  margin: 0 0 16px;
  gap: 10px;
}
body.shell-web .q-meta-cell,
body.shell-web-app .q-meta-cell {
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.06);
  border: 1px solid var(--site-line);
}
.site-card-body p {
  margin: 0; color: var(--site-muted); font-size: 0.86rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.site-feature {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  background: var(--site-panel); border: 1px solid var(--site-line); border-radius: 14px;
  text-decoration: none; color: inherit;
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.site-feature:hover { transform: translateY(-2px); box-shadow: var(--site-shadow); }
.site-feature strong { color: var(--site-ink); font-size: 0.95rem; }
.site-feature span { color: var(--site-muted); font-size: 0.84rem; line-height: 1.5; }

.site-cta-band {
  margin: calc(var(--r) * 5) 0 calc(var(--r) * 2);
  padding: 28px 22px;
  text-align: center; border-radius: 18px;
  border: 1px solid var(--site-line);
  background: rgba(255, 255, 255, 0.55);
}
.site-cta-band h2 {
  margin: 0 0 6px; color: var(--site-ink); font-size: 1.15rem;
}
.site-cta-band p { margin: 0 0 16px; color: var(--site-muted); font-size: 0.92rem; }
.site-empty { margin: 8px 0; color: var(--site-muted); font-size: 0.9rem; }

.site-home-split {
  display: grid;
  gap: 28px;
}
@media (min-width: 860px) {
  .site-home-split { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
}

/* Article */
.site-article { max-width: 720px; margin: 0 auto; padding-top: calc(var(--r) * 2); }
.site-back {
  display: inline-block; margin-bottom: 12px; color: var(--site-accent);
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
}
.site-back:hover { text-decoration: underline; }
.site-article-cover {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px;
  margin: 12px 0 20px; display: block;
}
.site-article h1 {
  margin: 0 0 18px; font-size: clamp(1.4rem, 3vw, 1.95rem);
  line-height: 1.4; color: var(--site-ink); letter-spacing: -0.02em;
}
.site-article-body { font-size: 1.02rem; line-height: 1.85; color: var(--site-ink-soft); }
.site-article-body p { margin: 0 0 1em; }
.site-article-body p:last-child { margin-bottom: 0; }
.site-article-body strong, .site-article-body b { font-weight: 800; color: var(--site-ink); }
.site-article-body img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 0.75em 0; }
.site-article-body a { color: var(--site-accent); text-decoration: underline; text-underline-offset: 3px; }
.site-article-body ul,
.site-article-body ol {
  margin: 0 0 1em;
  padding-right: 1.4em;
  padding-left: 0;
}
.site-article-body li { margin: 0.35em 0; }
.site-article-body em,
.site-article-body i { font-style: italic; }
.site-article-body [style*="text-align: center"],
.site-article-body [style*="text-align:center"] { text-align: center; }
.site-article-body [style*="text-align: left"],
.site-article-body [style*="text-align:left"] { text-align: left; }
.site-article-body [style*="text-align: right"],
.site-article-body [style*="text-align:right"] { text-align: right; }
.site-article-body [style*="text-align: justify"],
.site-article-body [style*="text-align:justify"] { text-align: justify; }

/* Resources */
.site-resources { display: grid; gap: calc(var(--r) * 3); }
.site-res-sec {
  padding: 18px 18px 12px; background: var(--site-panel);
  border: 1px solid var(--site-line); border-radius: 14px;
}
.site-res-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.site-res-sec-head h2 { margin: 0; font-size: 1.15rem; color: var(--site-ink); }
.site-res-sub { margin: 16px 0; }
.site-res-sub h3 { margin: 0 0 10px; font-size: 1rem; color: var(--site-ink); }
.site-res-cat {
  margin: 12px 0 12px 4px; padding-right: 12px;
  border-right: 2px solid rgba(15, 118, 110, 0.28);
}
.site-res-cat h4 {
  margin: 0 0 8px; font-size: 0.92rem; color: var(--site-muted); font-weight: 700;
}
.site-res-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(11, 46, 44, 0.06);
}
.site-res-item:last-child { border-bottom: 0; }
.site-res-kind {
  flex-shrink: 0; min-width: 44px; text-align: center; padding: 4px 8px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  background: rgba(15, 118, 110, 0.1); color: var(--site-accent-deep);
}
.site-res-item-main { flex: 1; min-width: 0; }
.site-res-item-main h4 { margin: 0 0 2px; font-size: 0.95rem; color: var(--site-ink); }
.site-res-item-main p { margin: 0; font-size: 0.82rem; color: var(--site-muted); line-height: 1.5; }

/* About / gate */
.site-about { max-width: 40rem; padding-top: calc(var(--r) * 2); }
.site-about-lead { margin: 14px 0 0; line-height: 1.85; color: var(--site-ink-soft); white-space: pre-wrap; }
.site-about-list {
  margin: 20px 0; padding-right: 18px; line-height: 1.9; color: var(--site-ink);
}
.site-about-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-start; /* RTL: start = right */
  align-items: center;
}
.site-about-actions .site-btn {
  min-width: 10rem;
  text-align: center;
}
.site-contact {
  max-width: 32rem;
  padding-top: calc(var(--r) * 2);
}
.site-contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.site-contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--site-muted);
  font-weight: 600;
}
.site-contact-form input,
.site-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--site-line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 500;
  color: var(--site-ink);
  background: var(--site-panel, #fff);
  outline: none;
  resize: vertical;
}
.site-contact-form input:focus,
.site-contact-form textarea:focus {
  border-color: var(--site-accent, #0f766e);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.site-contact-form .site-btn {
  justify-self: start;
  min-width: 8rem;
  margin-top: 4px;
}
.site-contact-form .site-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
#site-contact-status {
  margin: 0;
  color: var(--site-accent-deep, #0f766e);
}

.site-gate {
  text-align: center;
  max-width: 28rem;
  margin: calc(var(--r) * 4) auto;
  padding: 28px 22px;
  background: var(--site-panel);
  border: 1px solid var(--site-line);
  border-radius: 16px;
}
.site-gate h2 {
  margin: 0 0 10px;
  color: var(--site-ink);
  font-size: 1.2rem;
}
.site-gate p {
  margin: 0 0 18px;
  color: var(--site-muted);
  line-height: 1.75;
}
.site-gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.site-gate .site-btn { margin: 0; }
.site-gate-back { margin: 16px 0 0; font-size: 0.9rem; }
.site-gate-back a { color: var(--site-accent); text-decoration: none; }

/* Free practice page */
.site-free {
  width: 100%;
  max-width: none;
  padding-top: calc(var(--r) * 1.5);
  display: grid;
  gap: 28px;
}
.site-free-head {
  display: grid;
  gap: 12px;
}
.site-free-head .site-page-title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.35;
}
.site-free-lead {
  margin: 0;
  color: var(--site-muted);
  font-size: 0.98rem;
  line-height: 1.85;
  max-width: none;
}
.site-free-cta {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  padding: 28px 24px 24px;
  text-align: center;
  background: var(--site-panel);
  border: 1px solid var(--site-line);
  border-radius: 16px;
  box-shadow: var(--site-shadow);
}
.site-free-cta-text {
  margin: 0;
  color: var(--site-ink-soft, var(--site-muted));
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.75;
}
.site-free-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.site-free-actions .site-btn {
  min-width: 7.5rem;
  padding: 10px 18px;
}
.site-free .site-section {
  margin: 4px 0 0;
}
.site-free .site-section-head {
  margin-bottom: 12px;
}
.site-free .site-feature-grid {
  gap: 10px;
}

@media (min-width: 1024px) {
  .site-free-lead {
    font-size: 1rem;
    white-space: nowrap;
  }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .site-free {
    gap: 24px;
  }
  .site-free-lead {
    white-space: normal;
    max-width: 42rem;
  }
  .site-free-cta {
    max-width: 26rem;
    padding: 24px 20px;
  }
}
@media (max-width: 767px) {
  .site-free {
    gap: 20px;
    padding-top: calc(var(--r) * 0.75);
  }
  .site-free-lead {
    font-size: 0.92rem;
    line-height: 1.8;
    white-space: normal;
  }
  .site-free-cta {
    max-width: 100%;
    padding: 20px 16px;
    gap: 14px;
  }
  .site-free-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .site-free-actions .site-btn {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    font-size: 0.88rem;
  }
}

/* Footer — sits at page bottom without covering content */
.site-footer {
  position: relative;
  margin-top: auto;
  flex-shrink: 0;
  z-index: 5;
  border-top: 1px solid var(--site-line);
  background: rgba(247, 251, 250, 0.92);
}
body.shell-web .main {
  padding-bottom: calc(var(--r) * 4 + env(safe-area-inset-bottom, 0px));
}
body.shell-web-app .main {
  padding-bottom: calc(var(--r) * 5 + env(safe-area-inset-bottom, 0px));
}
body.shell-web-app #site-footer {
  display: none !important;
}
.site-footer-inner {
  max-width: var(--site-max); margin: 0 auto;
  padding: 10px var(--site-pad) calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.site-footer-copy {
  margin: 0;
  color: var(--site-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}
.site-footer-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.site-footer-links a {
  color: var(--site-muted); text-decoration: none; font-size: 0.84rem;
}
.site-footer-links a:hover { color: var(--site-accent); }

/* Responsive */
@media (max-width: 1099px) and (min-width: 768px) {
  .site-nav-inner {
    gap: 6px;
    padding-top: 14px;
  }
  .site-brand {
    margin-inline-end: 6px;
    gap: 8px;
    max-width: 11.5rem;
  }
  .site-brand-logo {
    width: 34px;
    height: 34px;
  }
  .site-brand-main { font-size: 0.92rem; }
  .site-link {
    padding: 5px 6px;
    font-size: 0.82rem;
  }
  .site-nav-actions .site-cta {
    padding: 6px 10px;
    font-size: 0.76rem;
  }
}
@media (max-width: 767px) {
  .site-nav {
    position: sticky;
  }
  .site-nav-inner {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 10px;
  }
  .site-brand {
    margin-inline-end: 0;
    min-width: 0;
    gap: 8px;
    flex: 1 1 auto;
  }
  .site-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 0;
  }
  .site-brand-main {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .site-nav-actions {
    margin-inline-start: 0;
    gap: 6px;
  }
  .site-menu-btn {
    display: inline-flex;
  }
  .site-cta {
    margin: 0;
    padding: 7px 11px;
    font-size: 0.78rem;
  }
  .site-links {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    inset-inline: var(--site-pad);
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 4px;
    width: auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(11, 46, 44, 0.1);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(11, 46, 44, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: visible;
    mask-image: none;
  }
  .site-nav.is-menu-open .site-links {
    display: flex;
  }
  .site-link {
    flex: none;
    width: 100%;
    padding: 11px 14px;
    font-size: 0.92rem;
    border-radius: 10px;
    background: transparent;
    border: 0;
    text-align: right;
  }
  .site-link.is-active {
    background: rgba(15, 118, 110, 0.1);
    border: 0;
  }
  .site-hero { padding-top: 28px; padding-bottom: 18px; }
  .site-res-item { flex-wrap: wrap; }
  .site-hero-actions {
    display: grid;
    gap: 10px;
  }
  .site-hero-actions .site-btn { width: 100%; }
}
@media (min-width: 768px) {
  .site-grid, .site-grid--blog, .site-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .site-menu-btn { display: none !important; }
}
@media (min-width: 1024px) {
  .site-grid, .site-grid--blog, .site-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .site-hero { padding-block: clamp(48px, 6vw, 72px) clamp(20px, 3vw, 36px); }
  .site-nav-inner { flex-wrap: nowrap; }
  .site-brand { margin-inline-end: 10px; max-width: none; }
  .site-link {
    padding: 6px 8px;
    font-size: 0.88rem;
  }
  .site-nav-actions .site-cta {
    padding: 8px 14px;
    font-size: 0.84rem;
  }
}


.site-auth {
  max-width: 440px;
  margin: 0 auto;
  padding-top: clamp(16px, 3.5vw, 32px);
}
.site-auth .site-page-title {
  margin: 0;
}
.site-account { max-width: 520px; margin: 0 auto; display: grid; gap: 16px; }
.site-account-head { margin-bottom: 4px; }
.site-account-card {
  background: var(--site-panel);
  border: 1px solid var(--site-line);
  border-radius: 16px;
  padding: 22px 20px 20px;
  backdrop-filter: blur(6px);
  display: grid;
  gap: 14px;
}
.site-account-card h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--site-ink);
}
.site-account-card .empty-note {
  margin: 0;
  line-height: 1.7;
}
.site-account-card .site-btn {
  margin-top: 4px;
  width: 100%;
  justify-self: stretch;
}
.site-account-status {
  margin: 0;
  padding-top: 2px;
  color: var(--site-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  min-height: 1.4em;
}
.site-account-card--soft { background: rgba(255, 255, 255, 0.45); }
.site-account-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(11, 46, 44, 0.06);
  font-size: 0.92rem;
}
.site-account-row:last-child { border-bottom: none; }
.site-account-row span { color: var(--site-muted); }
.site-account-row strong { color: var(--site-ink); font-weight: 700; text-align: left; }
.site-account-ok {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--site-accent-deep);
  font-size: 0.92rem;
  line-height: 1.6;
}
.site-account-steps {
  margin: 0 0 12px;
  padding-inline-start: 1.2rem;
  color: var(--site-ink-soft);
  font-size: 0.92rem;
  display: grid;
  gap: 8px;
  line-height: 1.55;
}
.site-account-steps a { color: var(--site-accent); }
.site-account-steps code {
  font-size: 0.85em;
  background: rgba(11, 46, 44, 0.06);
  padding: 1px 6px;
  border-radius: 6px;
}
.site-auth-form { display: grid; gap: 12px; margin: 18px 0; }
.site-auth-form label,
.site-auth-label { display: grid; gap: 6px; font-size: 0.9rem; color: var(--site-muted); }
.site-auth-form input {
  border: 1px solid var(--site-line); border-radius: 10px; padding: 10px 12px;
  font: inherit; background: #fff; color: var(--site-ink); width: 100%;
  box-sizing: border-box;
}
.site-pass-wrap {
  position: relative;
  display: block;
}
.site-pass-wrap input {
  /* LTR password: keep space on the right for the eye */
  padding-right: 44px !important;
  padding-left: 12px !important;
  text-align: left;
}
.site-pass-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 6px;
  left: auto;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--site-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 1;
}
.site-pass-toggle:hover { color: var(--site-ink); background: rgba(11, 46, 44, 0.06); }
.site-pass-toggle svg { width: 20px; height: 20px; }
.site-pass-toggle .hidden { display: none; }
.site-pass-hint {
  margin: -2px 0 2px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  background: rgba(247, 251, 250, 0.95);
  border: 1px solid var(--site-line);
}
.site-pass-hint-text {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--site-muted);
}
.site-pass-hint-text strong { color: var(--site-ink); font-weight: 700; }
.site-pass-meter {
  height: 6px;
  border-radius: 999px;
  background: rgba(11, 46, 44, 0.08);
  overflow: hidden;
  margin-bottom: 8px;
}
.site-pass-meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #b45309;
  transition: width 0.2s ease, background 0.2s ease;
}
.site-pass-hint[data-level="medium"] .site-pass-meter span { background: #ca8a04; }
.site-pass-hint[data-level="strong"] .site-pass-meter span { background: var(--site-accent); }
.site-pass-level {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--site-muted);
}
.site-pass-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.site-pass-checks li {
  font-size: 0.8rem;
  color: var(--site-muted);
  padding-inline-start: 1.1rem;
  position: relative;
}
.site-pass-checks li::before {
  content: "○";
  position: absolute;
  inset-inline-start: 0;
  color: var(--site-muted);
}
.site-pass-checks li.is-ok { color: var(--site-accent-deep); }
.site-pass-checks li.is-ok::before { content: "●"; color: var(--site-accent); }
.site-auth-alt { color: var(--site-muted); font-size: 0.92rem; }
.site-auth-alt a { color: var(--site-accent); text-decoration: none; }
.site-auth-forgot { margin: -4px 0 4px; text-align: start; font-size: 0.88rem; }
.site-auth-sent {
  display: grid;
  gap: 14px;
  max-width: 28rem;
}
.site-auth-sent-email {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--site-line);
  color: var(--site-ink);
  font-weight: 700;
  font-size: 0.95rem;
  word-break: break-all;
}
.site-auth-sent-tips {
  margin: 0;
  padding: 0 1.1rem 0 0;
  color: var(--site-ink-soft);
  line-height: 1.75;
  font-size: 0.94rem;
}
.site-auth-sent-tips li { margin: 0.35em 0; }
.site-auth-sent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.site-auth-code {
  font-size: 1.4rem; font-weight: 800; letter-spacing: 0.12em;
  padding: 12px; background: var(--site-panel); border-radius: 10px; text-align: center;
}
.site-plan-grid {
  display: grid; gap: calc(var(--r) * 1.5);
  grid-template-columns: 1fr;
}
.site-plan-card {
  background: var(--site-panel); border: 1px solid var(--site-line);
  border-radius: 14px; padding: 18px; display: grid; gap: 8px;
  animation: siteIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0ms);
}
.site-plan-card p { margin: 0; color: var(--site-muted); font-size: 0.92rem; }
.site-plan-card--sm { padding: 14px; }
.site-plan-price {
  font-weight: 800; color: var(--site-accent-deep); font-size: 1.05rem;
}
.site-sample-grid { display: grid; gap: 12px; }
.site-sample {
  background: var(--site-panel); border: 1px solid var(--site-line);
  border-radius: 12px; padding: 14px 16px;
  animation: siteIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0ms);
}
.site-sample header {
  display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px;
}
.site-sample header strong { color: var(--site-ink); }
.site-sample header span { color: var(--site-muted); font-size: 0.85rem; }
.site-sample ol {
  margin: 0; padding-inline-start: 1.2rem; color: var(--site-ink-soft);
  font-size: 0.92rem; display: grid; gap: 6px;
}
@media (min-width: 768px) {
  .site-plan-grid { grid-template-columns: repeat(2, 1fr); }
  .site-sample-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .site-plan-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Ads */
.site-ads { display: grid; gap: 18px; }
.site-ads-head { display: grid; gap: 8px; }
.site-ads-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px 16px;
  align-items: center; justify-content: space-between;
}
.site-ad-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.site-ad-filter {
  appearance: none; border: 1px solid var(--site-line); background: rgba(255,255,255,0.55);
  color: var(--site-muted); border-radius: 999px; padding: 7px 12px; font: inherit;
  font-size: 0.84rem; font-weight: 600; cursor: pointer;
}
.site-ad-filter.is-active {
  background: var(--site-accent); color: #fff; border-color: transparent;
}
.site-ads-sort {
  display: inline-flex; align-items: center;
}
.site-ads-sort select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font: inherit; font-size: 0.86rem; font-weight: 600;
  min-width: 0;
  width: auto;
  padding: 8px 12px;
  padding-inline-end: 1.85rem;
  border-radius: 10px;
  border: 1px solid var(--site-line);
  color: var(--site-ink);
  cursor: pointer;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230b2e2c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 10px center;
  background-size: 11px 7px;
}
.site-ads-sort select::-ms-expand { display: none; }
.site-ads-grid { display: grid; gap: 12px; }
.site-ad-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px;
  text-decoration: none; color: inherit;
  background: var(--site-panel); border: 1px solid var(--site-line);
  border-radius: 14px; padding: 12px; align-items: stretch;
  animation: siteIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0ms);
}
.site-ad-card:hover { transform: translateY(-2px); box-shadow: var(--site-shadow); }
.site-ad-card-cover {
  width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: #fff;
}
.site-ad-card:not(:has(.site-ad-card-cover)) { grid-template-columns: 1fr; }
.site-ad-card-body { display: grid; gap: 6px; min-width: 0; align-content: start; }
.site-ad-card-body strong {
  font-size: 1rem; color: var(--site-ink); line-height: 1.45;
}
.site-ad-card-meta, .site-ad-card-date {
  color: var(--site-muted); font-size: 0.82rem; line-height: 1.5;
}
.site-ad-card.is-expired {
  opacity: 0.92;
}
.site-ad-card-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.site-ad-badge {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; background: rgba(11,46,44,0.06); color: var(--site-muted);
}
.site-ad-badge--featured {
  background: rgba(15, 118, 110, 0.14); color: var(--site-accent-deep);
}
.site-ad-badge--live {
  background: rgba(15, 118, 110, 0.1); color: var(--site-accent-deep);
}
.site-ad-badge--expired {
  background: rgba(180, 60, 60, 0.1); color: #9b2c2c;
}
.site-ad-detail { max-width: 44rem; display: grid; gap: 12px; }
.site-ad-detail-cover {
  width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px; margin: 4px 0 8px;
}
.site-ad-facts {
  display: grid; gap: 8px; margin: 0; padding: 14px 16px;
  background: var(--site-panel); border: 1px solid var(--site-line); border-radius: 12px;
}
.site-ad-facts > div { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.site-ad-facts dt { margin: 0; color: var(--site-muted); font-size: 0.86rem; }
.site-ad-facts dd { margin: 0; color: var(--site-ink); font-weight: 700; font-size: 0.9rem; }
.site-ad-body {
  margin: 0;
  padding: 14px 16px;
  background: var(--site-panel);
  border: 1px solid var(--site-line);
  border-radius: 12px;
  color: var(--site-ink-soft);
  font-size: 1.02rem;
  line-height: 1.85;
  min-width: 0;
}
.site-ad-body-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.site-ad-body-html p { margin: 0 0 1em; }
.site-ad-body-html p:last-child { margin-bottom: 0; }
.site-ad-link { margin: 8px 0 0; }
@media (max-width: 640px) {
  .site-ad-card { grid-template-columns: 1fr; }
  .site-ad-card-cover { width: 100%; height: 160px; }
}
@media (min-width: 768px) {
  .site-ads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .site-ads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body.shell-web-app .bottom-nav { display: flex !important; }
body.shell-web-app .topbar { display: none !important; }
/* Member web: no marketing footer; keep space for bottom nav on small screens */
body.shell-web-app #app.app,
body.shell-web-app .app.shell-web {
  padding-bottom: calc(88px + var(--safe-bottom, 0px));
}
@media (min-width: 900px) {
  body.shell-web-app .bottom-nav { display: none !important; }
  body.shell-web-app #app.app,
  body.shell-web-app .app.shell-web {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

.qbank { margin: 8px 0 28px; }
.qbank-card {
  background: #fff;
  border: 1px solid rgba(15, 39, 68, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(15, 39, 68, 0.08);
  overflow: hidden;
}
.qbank-head {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 14px 22px;
  background: #10283f;
  color: #fff;
}
.qbank-head h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}
.qbank-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 18px 4px;
}
.qbank-tab {
  flex: 0 0 auto;
  border: 1px solid #e6ebf2;
  background: #fff;
  color: #1e293b;
  border-radius: 12px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.qbank-tab.is-on {
  background: #0f9d58;
  border-color: #0f9d58;
  color: #fff;
}
.qbank-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 18px 0;
}
.qbank-sort,
.qbank-tools select,
.qbank-search {
  height: 46px;
  border: 1px solid #e7edf3;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.qbank-sort {
  width: 46px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #334155;
}
.qbank-sort svg { width: 18px; height: 18px; fill: currentColor; }
.qbank-tools select {
  min-width: 148px;
  padding: 0 12px;
  font: inherit;
  font-weight: 700;
  color: #1e293b;
}
.qbank-search {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-width: 0;
}
.qbank-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}
.qbank-search svg { width: 18px; height: 18px; stroke: #94a3b8; fill: none; stroke-width: 2; }
.qbank-hint {
  margin: 10px 18px 0;
  color: #64748b;
  font-size: 0.8rem;
}
.qbank-scroll { overflow-x: auto; padding: 12px 18px 18px; }
.qbank-table {
  width: 100%;
  min-width: 680px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e7edf3;
  border-radius: 16px;
  overflow: hidden;
}
.qbank-table th {
  background: #f8fafc;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
  padding: 12px 6px;
  border-bottom: 1px solid #e7edf3;
  vertical-align: middle;
}
.qbank-table td {
  text-align: center;
  padding: 16px 8px;
  border-bottom: 1px solid #eef2f6;
  vertical-align: middle;
}
.qbank-table tr:last-child td { border-bottom: 0; }
.qbank-year { font-weight: 800; font-size: 1.05rem; color: #0f172a; }
.qbank-empty { color: #64748b; padding: 28px 12px !important; }
.qbank-pdf {
  width: 46px;
  height: 52px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  position: relative;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.qbank-pdf svg { width: 34px; height: 40px; fill: none; stroke-width: 1.6; }
.qbank-pdf b {
  position: absolute;
  inset-inline: 0;
  bottom: 7px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}
.qbank-pdf.is-on { color: #16a34a; }
.qbank-pdf.is-on svg { stroke: #16a34a; }
.qbank-pdf.is-off { color: #ef4444; cursor: default; }
.qbank-pdf.is-off svg { stroke: #ef4444; }
.qbank-dl {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
}
.qbank-dl.is-off { color: #cbd5e1; cursor: default; }
