.tan-formatted-content {
  color: #1f2937;
  line-height: 1.75;
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  white-space: normal;
}

.tan-formatted-content > :first-child {
  margin-top: 0;
}

.tan-fmt-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 1.4rem 0 0.6rem;
  color: #1a3d2b;
}

.tan-fmt-h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 1.1rem 0 0.45rem;
  padding-bottom: 4px;
  color: #1a3d2b;
  border-bottom: 2px solid rgba(201, 168, 76, 0.45);
}

.tan-fmt-h4 {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.9rem 0 0.35rem;
  color: #1f2937;
}

.tan-fmt-p {
  margin: 0 0 0.85rem;
  font-weight: 400;
}

.tan-fmt-p strong {
  font-weight: 700;
  color: #111827;
}

.tan-fmt-ul {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
  list-style: disc outside;
}

.tan-fmt-ul li {
  margin-bottom: 0.45rem;
  font-weight: 400;
  display: list-item;
}

.tan-fmt-ul li::marker {
  color: #1a3d2b;
}

.tan-fmt-ol {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
  list-style: decimal outside;
}

.tan-fmt-ol li {
  margin-bottom: 0.45rem;
  font-weight: 400;
  display: list-item;
}

.tan-fmt-ol li::marker {
  color: #1a3d2b;
  font-weight: 700;
}

.tan-fmt-hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 1rem 0;
}

.tan-fmt-highlight em,
.tan-fmt-p em,
.tan-fmt-ul em,
.tan-fmt-ol em {
  font-style: italic;
}

.upsc-case-study-body {
  background: #FFF8E7;
  border-left: 4px solid #C9A84C;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}

.tan-fmt-highlight {
  background: linear-gradient(135deg, #f4faf6 0%, #fdf9ef 100%);
  border-left: 4px solid #c9a84c;
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  margin: 0.9rem 0 1rem;
  color: #1a3d2b;
  font-weight: 600;
  font-style: italic;
}

.tan-premium-block {
  margin: 28px 0;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.tan-premium-block__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 14px;
  color: #0d0d0d;
}

.tan-premium-gate {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.tan-premium-gate__skeleton {
  padding: 18px;
  filter: blur(0);
}

.tan-premium-gate__sk-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f3f4f6, #e5e7eb, #f3f4f6);
  background-size: 200% 100%;
  animation: tan-sk-shimmer 1.4s ease infinite;
  margin-bottom: 10px;
}

.tan-premium-gate__sk-line--lg {
  height: 18px;
  width: 72%;
}

.tan-premium-gate__sk-line--sm {
  width: 45%;
  margin-bottom: 0;
}

.tan-premium-gate__cta {
  padding: 16px 18px 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), #fff 30%);
}

.tan-premium-gate__msg {
  margin: 0 0 12px;
  font-size: 14px;
  color: #4b5563;
}

.tan-premium-gate__btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  background: #0a2518;
  color: #c9a84c;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 8px;
}

.tan-premium-gate__btn:hover {
  background: #123824;
}

.tan-app-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tan-app-modal[hidden] {
  display: none !important;
}

.tan-app-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 24, 0.55);
}

.tan-app-modal__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 24px 22px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.tan-app-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.tan-app-modal__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 10px;
  color: #0a2518;
}

.tan-app-modal__text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

.tan-app-modal__login {
  display: block;
  text-align: center;
  text-decoration: none;
  background: #c8102e;
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 8px;
}

.tan-app-modal__login:hover {
  background: #a50d25;
}

.tan-app-modal__hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

@keyframes tan-sk-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}

.article-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #1a3d2b;
  background: #f3f4f6;
  padding: 5px 10px;
  border-radius: 999px;
  text-decoration: none;
}

.article-tag:hover {
  background: #e5e7eb;
}

.tan-premium-gate__btn:hover {
  background: #123824;
}

.tan-premium-gate__btn--link {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.article-lang-fallback {
  margin: 0 0 16px;
  padding: 10px 14px;
  font-size: 13px;
  color: #4b5563;
  background: #fffbeb;
  border-left: 3px solid #c9a84c;
  border-radius: 6px;
}

.article-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-picker {
  position: relative;
  flex-shrink: 0;
  z-index: 5;
}

.lang-picker-btn {
  border: 1px solid rgba(201, 168, 76, 0.45);
  background: linear-gradient(145deg, #0f2e1f 0%, #0a2518 100%);
  color: #f5f0e6;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(10, 37, 24, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.lang-picker-btn:hover {
  transform: translateY(-1px);
  border-color: #c9a84c;
  box-shadow: 0 6px 18px rgba(201, 168, 76, 0.22);
}

.lang-picker-globe {
  display: inline-flex;
  color: #c9a84c;
}

.lang-picker-btn:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
}

.lang-picker-chevron {
  font-size: 0.65rem;
  opacity: 0.85;
}

.lang-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 148px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #1a2e24;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 1100;
}

.lang-picker-menu[hidden] {
  display: none;
}

.lang-picker-option {
  margin: 0;
  padding: 0;
}

.lang-picker-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.82rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  box-sizing: border-box;
}

.lang-picker-lock {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
}

.lang-picker-lock--open {
  color: #86efac;
}

.lang-picker-link--locked {
  opacity: 0.92;
}

.lang-picker-link--locked:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lang-picker-link--locked .lang-picker-lock {
  color: #fbbf24;
}

.tan-lang-pwa-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 12000;
  max-width: 320px;
  padding: 16px 18px;
  background: #0a2518;
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  color: #f5f0e6;
}

.tan-lang-pwa-toast__text {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 14px;
  color: #c9a84c;
}

.tan-lang-pwa-toast__hint {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.tan-lang-pwa-toast__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.tan-lang-pwa-toast__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #c9a84c;
  color: #0a2518;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  text-align: center;
}

.tan-lang-pwa-toast__dismiss {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  padding: 6px 10px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lang-picker-link-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #c9a84c;
}

.lang-picker-link:hover,
.lang-picker-link:focus,
.lang-picker-link--open:hover,
.lang-picker-link--open:focus {
  background: rgba(201, 168, 76, 0.15);
  outline: none;
}

.lang-picker-option.is-selected .lang-picker-link {
  background: rgba(201, 168, 76, 0.28);
  color: #c9a84c;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.article-nav a {
  font-size: 13px;
  color: #1a3d2b;
  text-decoration: none;
  font-weight: 600;
}

.tan-premium-unlocked-body {
  margin-top: 4px;
}

.tan-article-section {
  margin: 0 0 28px;
}

.tan-article-section__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0a2518;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(201, 168, 76, 0.35);
}
