
/*
=========================================================
Project      : UPI QR Studio
Website      : https://rsbusinesses0.github.io/UPI_QR_Studio/
Created By   : Sumit Kumar Shakya
Developer    : Solo Creator & Developer
Developed For: RS Businesses
GitHub       : https://github.com/sksumitkumarshakya
Contact      : sksumitkumarshakya@gmail.com

Description  : Stylesheet for the UPI QR Studio website.
               Supports the website's layout, responsive
               design, components, and visual presentation.

Year         : 2026
=========================================================
*/

/* UPI guide topics landing page — add to css/upi-guide-topics.css */
.upi-guide-topics-page {
  --topic-text: #202124;
  --topic-muted: #5f6368;
  --topic-blue: #0b57d0;
  --topic-border: #b8b8b8;
  background: #fff;
  color: var(--topic-text);
}

.upi-guide-topics-page *,
.upi-guide-topics-page *::before,
.upi-guide-topics-page *::after {
  box-sizing: border-box;
}

.upi-topics-main {
  width: min(100% - 40px, 850px);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.upi-topics-heading {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.upi-topics-intro {
  margin: 0 0 18px;
  color: var(--topic-muted);
  font-size: 14px;
  line-height: 1.6;
}

.upi-topic-accordion {
  overflow: hidden;
  border: 1px solid var(--topic-border);
  border-radius: 8px;
  background: #fff;
}

.upi-topic-group + .upi-topic-group {
  border-top: 1px solid var(--topic-border);
}

.upi-topic-group h2 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.upi-topic-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 52px;
  padding: 15px 30px 15px 64px;
  border: 0;
  background: #fff;
  color: #202124;
  text-align: left;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color .16s ease;
}

.upi-topic-toggle:hover,
.upi-topic-toggle[aria-expanded="true"] {
  background: #f8faff;
}

.upi-topic-toggle:focus-visible,
.upi-subtopic-link:focus-visible {
  outline: 3px solid rgba(11, 87, 208, .3);
  outline-offset: -3px;
}

.upi-topic-chevron {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-right: 3px;
  border-right: 1.8px solid var(--topic-blue);
  border-bottom: 1.8px solid var(--topic-blue);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.upi-topic-toggle[aria-expanded="true"] .upi-topic-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.upi-topic-panel {
  padding: 2px 30px 18px 64px;
  background: #fff;
}

.upi-topic-panel[hidden] {
  display: none !important;
}

.upi-subtopic-link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  color: var(--topic-blue);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.55;
}

.upi-subtopic-link + .upi-subtopic-link {
  border-top: 1px solid #f0f0f0;
}

.upi-subtopic-link:hover {
  text-decoration: underline;
}

.upi-subtopic-link span {
  flex: 0 0 auto;
  color: var(--topic-muted);
  font-size: 13px;
}

/* Mobile */
@media (max-width: 600px) {
  .upi-topics-main {
    width: calc(100% - 24px);
    padding: 20px 0 36px;
  }

  .upi-topics-heading {
    font-size: 19px;
  }

  .upi-topics-intro {
    font-size: 13px;
  }

  .upi-topic-toggle {
    min-height: 54px;
    padding: 15px 18px;
    font-size: 14px;
  }

  .upi-topic-panel {
    padding: 2px 18px 14px;
  }

  .upi-subtopic-link {
    gap: 10px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .upi-topic-chevron,
  .upi-topic-toggle {
    transition: none;
  }
}
