:root {
  --brand: #ef1451;
  --brand-dark: #c90e3f;
  --ink: #191c22;
  --muted: #6c7280;
  --line: #e4e6ea;
  --soft: #f4f4f5;
  --paper: #ffffff;
  --green: #159a62;
  --red: #d9364f;
  --shadow: 0 4px 16px rgba(28, 34, 44, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f3f3f4;
  color: var(--ink);
  font-family: "Noto Sans Devanagari", "Nirmala UI", Arial, sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

#app:focus {
  outline: 0;
}

.container {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.masthead {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 320px) auto auto;
  gap: 18px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 31px;
  line-height: 0.95;
  letter-spacing: 0;
}

.brand small {
  color: #111;
  font-size: 14px;
}

.quick-nav,
.nav-inner,
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.quick-nav {
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
}

.quick-nav a:hover,
.footer-links a:hover,
.headline-list a:hover,
.panel a:hover {
  color: var(--brand);
}

.search-box {
  display: flex;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0 10px;
}

.search-box button,
.lang-toggle,
.panel-title a,
.panel-title button,
.post-nav a,
.contact-form button,
.calc-card button,
.event-card button,
.price-table td button,
.article-actions button,
.read-more.inline {
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 900;
}

.lang-toggle {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.main-nav {
  background: #fff;
}

.nav-inner {
  min-height: 38px;
  overflow-x: auto;
  font-size: 13px;
  font-weight: 900;
  scrollbar-width: none;
}

.nav-inner a.active {
  color: var(--brand);
}

.market-ticker {
  overflow: hidden;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 70px;
  padding: 10px 0;
  animation: ticker 34s linear infinite;
}

.ticker-track span {
  min-width: 120px;
  font-size: 13px;
  white-space: nowrap;
}

.ticker-track b {
  display: block;
}

.up {
  color: var(--green);
}

.down {
  color: var(--red);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.home-top {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 330px;
  gap: 18px;
  padding: 18px 0 24px;
}

.headline-list,
.lead-news,
.panel,
.article-card,
.author-box,
.comment-box,
.calc-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.headline-list {
  padding: 12px;
}

.headline-list h2,
.panel-title h2,
.panel-title h1 {
  position: relative;
  margin: 0;
  padding-bottom: 8px;
  font-size: 20px;
}

.headline-list h2::after,
.panel-title h2::after,
.panel-title h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 88px;
  height: 3px;
  background: var(--brand);
}

.headline-list article {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.headline-list h3 {
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.35;
}

.headline-list p,
.meta-line,
.source-note,
.article-meta-row {
  color: var(--muted);
  font-size: 12px;
}

.lead-news {
  padding: 12px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.lead-image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
}

.lead-image img {
  aspect-ratio: 16 / 8.7;
  object-fit: cover;
}

.lead-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
}

.lead-image span,
.article-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  padding: 6px 10px;
  font-weight: 900;
}

.lead-news h2 {
  margin: 16px 0 8px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
}

.lead-news p {
  margin: 0 0 12px;
  color: #313640;
  font-weight: 700;
}

.below-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.panel {
  padding: 12px;
}

.panel-list {
  display: grid;
  gap: 12px;
}

.news-row {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 10px;
  align-items: start;
}

.news-row img {
  height: 70px;
  border-radius: 5px;
  object-fit: cover;
}

.news-row h3,
.thumb-card h3 {
  margin: 0 0 7px;
  font-size: 14px;
  line-height: 1.3;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meta-line button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.two-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.card-grid,
.category-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.thumb-card {
  min-width: 0;
}

.thumb-card img {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
}

.thumb-card h3 {
  margin-top: 8px;
}

.three-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.lower-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  margin-bottom: 36px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  background: #b80e3c;
  color: #fff;
}

.event-card {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.event-card img {
  height: 48px;
  border-radius: 5px;
  object-fit: cover;
}

.event-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb {
  background: var(--brand);
  color: #fff;
  padding: 9px calc((100% - min(1180px, calc(100% - 28px))) / 2);
  font-size: 13px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  padding: 18px 0;
  align-items: start;
}

.article-card {
  position: relative;
  padding: 16px;
}

.article-hero {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
}

.article-card .article-label {
  position: relative;
  left: 0;
  bottom: auto;
  display: inline-block;
  margin: -58px 0 16px 14px;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.share-bar a,
.share-bar button,
.mobile-share a,
.mobile-share button {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 7px 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.mobile-share {
  display: none;
}

.article-card h1 {
  margin: 12px 0;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.15;
}

.article-card h2 {
  margin: 24px 0 8px;
  font-size: 22px;
}

.article-card p,
.article-summary {
  color: #262b34;
  font-size: 16px;
}

.article-summary {
  font-weight: 900;
}

.inline-graphic {
  max-width: 720px;
  margin: 18px auto;
  border-radius: 6px;
}

.article-table th {
  background: #fff;
  color: var(--ink);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.blog-sidebar {
  display: grid;
  gap: 18px;
}

.author-box,
.comment-box {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
}

.author-box img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
  flex: 0 0 auto;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--brand);
}

.author-box h3 {
  margin: 0 0 8px;
}

.author-box p {
  margin: 0 0 10px;
  color: #2b3038;
  font-size: 15px;
  line-height: 1.65;
}

.comment-box {
  display: block;
  max-width: 760px;
}

.simple-page {
  padding-bottom: 72px;
}

.contact-form,
.comment-box form,
.calculators {
  display: grid;
  gap: 12px;
}

.comment-box input,
.comment-box textarea,
.contact-form input,
.contact-form textarea,
.calc-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.page-head {
  padding: 28px 0 18px;
}

.page-head span {
  color: var(--brand);
  font-weight: 900;
}

.page-head h1 {
  margin: 6px 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
}

.category-page {
  margin-bottom: 36px;
}

.calculators {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 40px;
}

.calc-card {
  padding: 18px;
}

.calc-card output {
  display: block;
  min-height: 44px;
  padding: 12px;
  border-radius: 5px;
  background: var(--soft);
  font-weight: 900;
}

.site-footer {
  position: relative;
  background: #030735;
  color: #fff;
}

.footer-main {
  min-height: 230px;
  display: grid;
  grid-template-columns: 1fr 1.45fr 1.45fr;
  gap: 58px;
  align-items: start;
  padding: 56px 0 42px;
}

.footer-brand strong {
  display: block;
  font-size: clamp(34px, 4.1vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.footer-brand span,
.footer-bottom span {
  color: #ef4b4f;
}

.footer-about h2,
.footer-social h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.footer-about p {
  max-width: 560px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.dmca-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 0 9px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.4px;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 580px;
}

.social-icons a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 900;
}

.footer-bottom {
  min-height: 66px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.footer-links {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.footer-links a::before {
  content: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 16px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .masthead {
    grid-template-columns: auto 1fr auto;
  }

  .quick-nav,
  .search-box {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .home-top,
  .blog-layout,
  .lower-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .brand strong {
    font-size: 25px;
  }

  .ticker-track {
    gap: 36px;
  }

  .two-panels,
  .three-panels,
  .card-grid,
  .category-page,
  .calculators,
  .below-lead {
    grid-template-columns: 1fr;
  }

  .news-row {
    grid-template-columns: 104px 1fr;
  }

  .lead-news h2 {
    font-size: 31px;
  }

  .footer-inner,
  .author-box {
    grid-template-columns: 1fr;
    display: block;
    padding: 28px 0;
  }

  .footer-links {
    display: grid;
    gap: 10px;
  }
}

@media (max-width: 1040px) {
  .masthead {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    padding: 10px 0;
  }

  .quick-nav {
    display: none;
  }

  .search-box {
    grid-column: 1 / -1;
    order: 10;
    display: flex;
    width: 100%;
  }

  .nav-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    padding: 12px 0;
  }

  .nav-inner a {
    min-height: 38px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 10px;
    background: #fff;
  }
}

@media (max-width: 760px) {
  body {
    background: #fff;
  }

  .container {
    width: min(100% - 16px, 1180px);
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .masthead {
    min-height: auto;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 24px;
  }

  .brand small {
    font-size: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 13px;
    flex: 0 0 auto;
  }

  .lang-toggle {
    padding: 8px 9px;
    font-size: 13px;
  }

  .search-box {
    height: 42px;
  }

  .market-ticker {
    position: relative;
    z-index: 1;
  }

  .ticker-track {
    gap: 34px;
    padding: 8px 0;
    animation-duration: 26s;
  }

  .ticker-track span {
    min-width: 100px;
    font-size: 12px;
  }

  .home-top {
    padding: 10px 0 14px;
    gap: 10px;
  }

  .headline-list,
  .lead-news,
  .panel,
  .article-card,
  .author-box,
  .comment-box {
    border-radius: 0;
    border-inline: 0;
    box-shadow: none;
  }

  .lead-news {
    order: 1;
    padding: 10px 0;
  }

  .headline-list {
    order: 2;
  }

  .right-rail {
    order: 3;
  }

  .two-panels,
  .three-panels,
  .lower-layout {
    gap: 12px;
    margin-bottom: 12px;
    min-width: 0;
    width: 100%;
  }

  .lower-layout > *,
  .price-table,
  .event-panel {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .price-table {
    padding-inline: 8px;
  }

  .price-table .panel-title,
  .event-panel .panel-title {
    padding-inline: 0;
  }

  .table-wrap {
    width: 100%;
    max-width: calc(100vw - 32px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .price-table table {
    min-width: 620px;
    width: 620px;
  }

  .news-row {
    grid-template-columns: 112px 1fr;
    gap: 9px;
  }

  .news-row img {
    height: 76px;
  }

  .news-row h3,
  .thumb-card h3,
  .headline-list h3 {
    font-size: 14px;
  }

  .meta-line {
    gap: 6px;
    font-size: 11px;
  }

  .lead-news h2 {
    font-size: 28px;
    line-height: 1.12;
  }

  .lead-image img,
  .article-hero {
    aspect-ratio: 16 / 10;
  }

  .lead-image span {
    left: 10px;
    bottom: 10px;
  }

  .panel-title {
    align-items: center;
    gap: 8px;
  }

  .panel-title h1,
  .panel-title h2,
  .headline-list h2 {
    font-size: 19px;
  }

  .panel-title a,
  .panel-title button {
    padding: 7px 9px;
    font-size: 12px;
    white-space: nowrap;
  }

  .breadcrumb {
    padding: 8px;
    font-size: 12px;
  }

  .blog-layout {
    padding: 8px 0 12px;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .article-card {
    padding: 8px 0 14px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .article-card .article-label {
    margin: -48px 0 12px 10px;
  }

  .article-meta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 0 8px;
  }

  .share-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .share-bar a,
  .share-bar button {
    width: 100%;
    text-align: center;
    padding: 7px 8px;
  }

  .article-card h1 {
    padding: 0 8px;
    font-size: 28px;
  }

  .article-card h2,
  .article-card p,
  .article-summary {
    padding-inline: 8px;
  }

  .article-card p,
  .article-summary {
    font-size: 15px;
  }

  .inline-graphic {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  .article-table {
    min-width: 520px;
    width: 520px;
  }

  .post-nav {
    padding: 0 8px;
    flex-direction: column;
  }

  .post-nav a {
    width: 100%;
    text-align: center;
  }

  .author-box,
  .comment-box {
    margin-bottom: 12px;
    padding: 14px 8px;
  }

  .comment-box {
    max-width: calc(100% - 16px);
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .comment-box h3 {
    margin: 0 0 10px;
    font-size: 15px;
  }

  .comment-box form {
    gap: 8px;
  }

  .comment-box input,
  .comment-box textarea {
    padding: 9px;
    font-size: 13px;
  }

  .comment-box textarea {
    min-height: 86px;
  }

  .comment-box button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .mobile-share {
    position: sticky;
    bottom: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    padding: 8px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
  }

  .mobile-share a,
  .mobile-share button {
    border-radius: 6px;
    padding: 8px 6px;
    text-align: center;
  }

  .author-box img {
    margin-bottom: 10px;
    width: 82px;
    height: 82px;
  }

  .page-head {
    padding: 18px 8px 12px;
  }

  .page-head h1 {
    font-size: 32px;
  }

  .category-page,
  .calculators {
    padding: 0 8px 20px;
  }

  .calc-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  th,
  td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .event-card {
    grid-template-columns: 68px 1fr;
    width: 100%;
    min-width: 0;
    align-items: start;
  }

  .event-card img {
    width: 68px;
    max-width: 68px;
  }

  .event-card div {
    min-width: 0;
  }

  .event-card b,
  .event-card p {
    overflow-wrap: anywhere;
  }

  .event-card button {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: 100%;
  }

  .footer-inner {
    min-height: auto;
  }

  .footer-main {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 34px 8px 26px;
  }

  .footer-brand strong {
    font-size: 34px;
  }

  .footer-about h2,
  .footer-social h2 {
    margin-bottom: 10px;
    font-size: 18px;
  }

  .footer-about p {
    font-size: 14px;
    line-height: 1.55;
  }

  .social-icons {
    gap: 9px;
  }

  .social-icons a {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 8px 26px;
  }

  .footer-bottom p {
    white-space: normal;
    font-size: 14px;
  }

  .footer-bottom .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    font-size: 13px;
    white-space: normal;
  }

  .toast {
    right: 8px;
    bottom: 8px;
    max-width: calc(100vw - 16px);
  }
}
