/* Shared, restrained readability and language controls for every portal route. */
@font-face {
  font-family: "Noto Sans Bengali";
  src: url("../assets/fonts/NotoSansBengali.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
body { font-size: 16px; line-height: 1.62; }
p, li, dd, dt, label { line-height: 1.58; }
.site-nav { gap: clamp(13px, 1.5vw, 24px); }
.nav-shell { gap: clamp(15px, 2vw, 28px); }
.site-nav a, .nav-action { font-size: 13.5px; }
.eyebrow, .page-sequence, .form-section-index { font-size: 12px; line-height: 1.5; }
.brand-lockup small { font-size: 12px; }
.footer-inner p, .footer-links a, .footer-links > span { font-size: 13px; line-height: 1.55; }
.platform-plate-modules strong { font-size: 12.5px; line-height: 1.35; }
.platform-plate-modules span { font-size: 12px; line-height: 1.5; }
.platform-plate-modules small { font-size: 11.5px; }
.module-status, .module-route li, .module-link, .concept-note, .concept-step p,
.concept-step label, .detail-hero-aside small, .comparative-card li,
.process-grid li small, .capability-group dt, .capability-group dd,
.capability-note, .closing-metadata span, .file-picker small,
.form-helper, .validation-note, .service-note, .status-help,
.status-identifiers span, .timeline small, .progress-card small {
  font-size: max(13px, 0.84em);
  line-height: 1.55;
}
.account-field label, .account-message, .account-kicker,
.account-table-wrap table { font-size: 14px; line-height: 1.55; }
.account-table-wrap th { font-size: 12.5px; }
.password-control button { font-size: 13px; }
button, .button, .text-action { line-height: 1.45; }
.hero-footnote, .figure-head, .diagram-title, .detail-back,
.choice-group legend { font-size: 13px; line-height: 1.5; }
.choice-group label { font-size: 13px; }
.mark-rule span, .strip-inner > span, .workflow-index span,
.alignment-key span, .diagram-key span { font-size: 12px; line-height: 1.5; }
.target-matrix b { font-size: 12px; }
.receipt-kicker, .status-pill { font-size: 12.5px; }
.file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-select-label {
  align-self: flex-start;
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid #a8cce7;
  border-radius: 4px;
  background: #f0f7fc;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.file-picker:hover .file-select-label { border-color: var(--blue); background: #e8f3fc; }
.file-picker:focus-within { outline: 2px solid var(--orange); outline-offset: 3px; }

.language-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 5px;
  color: #6a7d8e;
  white-space: nowrap;
}
.language-switch button {
  padding: 5px 3px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #53677b;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.language-switch button.is-active,
.language-switch button[aria-pressed="true"] {
  color: #07529a;
  border-bottom-color: #0878e8;
}
.language-switch button:hover { color: #07529a; }
.language-switch button:lang(bn) { font-family: "Noto Sans Bengali", "Nirmala UI", sans-serif; }

html:lang(bn) body, html:lang(bn) button, html:lang(bn) input,
html:lang(bn) select, html:lang(bn) textarea {
  font-family: "Noto Sans Bengali", "Nirmala UI", "Vrinda", "Bangla Sangam MN", sans-serif;
}
html:lang(bn) body { line-height: 1.7; }
html:lang(bn) h1, html:lang(bn) h2, html:lang(bn) h3 { line-height: 1.35; }
html:lang(bn) .eyebrow { letter-spacing: 0.03em; }
html:lang(bn) .site-nav a, html:lang(bn) .nav-action,
html:lang(bn) .language-switch button { line-height: 1.5; }
html:lang(bn) .platform-plate-modules { align-items: start; }
html:lang(bn) .wgs-journey text { font-family: "Noto Sans Bengali", "Nirmala UI", sans-serif; }

@media (min-width: 761px) and (max-width: 1100px) {
  .nav-shell { flex-wrap: wrap; justify-content: space-between; gap: 0 16px; padding-bottom: 7px; }
  .site-nav { order: 3; width: auto; flex: 1; margin: 0; gap: 20px; }
  .site-nav a { padding: 10px 0; }
  .language-switch { order: 4; }
}
@media (max-width: 760px) {
  .site-nav { order: 3; width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 0 16px; }
  .site-nav a { font-size: 12.5px; padding: 7px 0; }
  .nav-action { order: 2; font-size: 12.5px; }
  .language-switch { order: 4; width: 100%; justify-content: flex-end; }
  .footer-links { white-space: normal; }
  .footer-links nav { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .site-nav { gap: 0 13px; }
  .site-nav a { font-size: 12px; }
  .nav-action { padding: 9px 10px; }
  html:lang(bn) .platform-plate-modules { grid-template-columns: 1fr 1fr; gap: 9px; }
  html:lang(bn) .platform-plate-modules strong { font-size: 11.5px; }
  html:lang(bn) .timeline li { grid-template-columns: 32px minmax(0, 1fr); row-gap: 2px; }
  html:lang(bn) .timeline li small { grid-column: 2; grid-row: 2; text-align: left; }
}
