/* ═══════════════════════════════════════
   GUIDELINES PAGE — CUSTOM STYLES
   ═══════════════════════════════════════ */

/* ── Hero ── */
.guidelines-hero {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 48px;
  background: #f0ede8;
  border-bottom: 1px solid #e0ddd8;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 500;
}

.usage-tag {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.guidelines-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3rem);
  font-weight: 600;
  color: #1a1714;
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.guidelines-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: #6b6560;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 16px;
}

.guidelines-meta {
  font-size: 0.85rem;
  color: #9a9590;
  margin-bottom: 8px;
}

.prev-version-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--orange);
  transition: opacity 0.2s ease;
}

.prev-version-link:hover {
  opacity: 0.8;
}

/* ── Two-Column Layout ── */
.guidelines-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  padding-top: 48px;
  padding-bottom: 80px;
  position: relative;
}

/* ── Sidebar ── */
.guidelines-sidebar {
  position: relative;
}

.sidebar-inner {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
  max-height: calc(100vh - var(--nav-height) - 64px);
  overflow-y: auto;
  padding-right: 8px;
}

.sidebar-inner::-webkit-scrollbar {
  width: 3px;
}

.sidebar-inner::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-inner::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav > a {
  display: block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, font-weight 0.2s ease;
  border-radius: 0 6px 6px 0;
}

.sidebar-nav > a:hover {
  color: var(--orange);
}

.sidebar-nav > a.active {
  color: var(--orange);
  font-weight: 500;
  border-left-color: var(--orange);
  background: rgba(232, 98, 42, 0.04);
}

.sidebar-sub-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-left: 0;
}

.sidebar-sub-links a {
  display: block;
  padding: 4px 12px 4px 24px;
  font-size: 13px;
  font-weight: 400;
  color: #9a9590;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-radius: 0 6px 6px 0;
}

.sidebar-sub-links a:hover {
  color: var(--orange);
}

.sidebar-sub-links a.active {
  color: var(--orange);
  font-weight: 500;
  border-left-color: var(--orange);
}

/* ── Mobile Tab Bar ── */
.mobile-tab-bar {
  display: none;
  overflow-x: auto;
  white-space: nowrap;
  gap: 4px;
  padding: 12px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-tab-bar::-webkit-scrollbar {
  display: none;
}

.mobile-tab {
  display: inline-block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-tab:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.mobile-tab.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* ── Content Area ── */
.guidelines-content {
  min-width: 0;
}

.guidelines-content section {
  margin-bottom: 64px;
  padding-top: 32px;
  scroll-margin-top: calc(var(--nav-height) + 32px);
}

.guidelines-content section:first-child {
  padding-top: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a1714;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 8px;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.content-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: #4a4640;
  margin-bottom: 16px;
}

.orange-link {
  color: var(--orange);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.orange-link:hover {
  opacity: 0.8;
}

/* ── Styled Lists ── */
.styled-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.styled-list li {
  position: relative;
  padding-left: 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: #4a4640;
  margin-bottom: 4px;
}

.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

.numbered-list {
  padding-left: 24px;
  margin: 0 0 32px 0;
}

.numbered-list li {
  font-size: 1rem;
  line-height: 1.8;
  color: #4a4640;
  margin-bottom: 8px;
}

.numbered-list li strong {
  color: #1a1714;
}

/* ── Check List ── */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.7;
  color: #4a4640;
  margin-bottom: 10px;
}

.check-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

.check-icon svg {
  width: 12px;
  height: 12px;
}

/* ═══════════════════════════════════════
   ACCORDION — FIXED
   ═══════════════════════════════════════ */
.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.accordion-item {
  border: 1px solid #e0ddd8;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  scroll-margin-top: calc(var(--nav-height) + 32px);
}

.accordion-item:hover {
  border-color: rgba(232, 98, 42, 0.3);
}

.accordion-item.open {
  border-color: rgba(232, 98, 42, 0.4);
  box-shadow: 0 2px 12px rgba(232, 98, 42, 0.06);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  gap: 12px;
  text-align: left;
}

.accordion-header:hover {
  background: rgba(232, 98, 42, 0.03);
}

.accordion-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.accordion-left-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.accordion-left-icon svg {
  width: 20px;
  height: 20px;
}

.accordion-title {
  font-size: 15px;
  font-weight: 500;
  color: #1a1714;
  line-height: 1.4;
}

.accordion-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
  padding: 0 20px;
}



.accordion-content p {
  font-size: 14px;
  color: #4a4640;
  line-height: 1.7;
  margin-bottom: 12px;
  padding-left: 40px;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.accordion-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 40px;
}

.accordion-content ul li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: #4a4640;
  line-height: 1.7;
  margin-bottom: 4px;
}

.accordion-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
}

.accordion-content ul li strong {
  color: #1a1714;
}

.accordion-content strong {
  color: #1a1714;
}

/* ── Policy Note Box ── */
.policy-note {
  background: #fef9f0;
  border: 1px solid #e0ddd8;
  border-left: 3px solid #e8622a;
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 16px;
  margin-left: 40px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #4a4640;
  line-height: 1.6;
}

.policy-note.warning {
  background: #fff5f0;
  border-left-color: #cc4444;
  color: #5a2020;
}

.policy-note strong {
  color: #1a1714;
}

.policy-note.warning strong {
  color: #5a2020;
}

/* ── Risk Cards Grid ── */
.risk-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.risk-card {
  background: var(--bg);
  border: 1px solid #e0ddd8;
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.risk-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.risk-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.risk-card-icon svg {
  width: 22px;
  height: 22px;
}

.risk-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #1a1714;
  margin-bottom: 8px;
}

.risk-card-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #6b6560;
}

/* ── Info Boxes ── */
.info-box {
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid;
}

.info-box.blue {
  background: #f0f4ff;
  border-color: #d0dcf0;
}

.info-box.orange {
  background: #fef5f0;
  border-color: #f0d8c8;
}

.info-box.green {
  background: #f0faf4;
  border-color: #c8e8d4;
}

.info-box-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1714;
  margin-bottom: 8px;
}

.info-box p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #4a4640;
}

/* ── Disclaimer Box ── */
.disclaimer-box {
  background: #fef9f0;
  border: 1px solid var(--orange);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  padding: 20px 24px;
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1714;
  margin-bottom: 16px;
}

.disclaimer-icon {
  width: 20px;
  height: 20px;
  color: var(--orange);
}

.disclaimer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.disclaimer-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #4a4640;
  margin-bottom: 8px;
}

.disclaimer-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.disclaimer-list li:last-child {
  margin-bottom: 0;
}

/* ── Contact Card ── */
.contact-card {
  border: 1px solid #e0ddd8;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  padding: 24px 28px;
  background: var(--bg);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #4a4640;
}

.contact-line svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--orange);
}

/* ── Versions Table ── */
.versions-section {
  border-top: 1px solid var(--border);
  padding-top: 48px !important;
}

.versions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.versions-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
}

.versions-table td {
  padding: 14px 16px;
  color: #4a4640;
  border-bottom: 1px solid var(--border);
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-badge.current {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

/* ═══════════════════════════════════════
   RESPONSIVE — 900px (Tablet)
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  .guidelines-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
  }

  .guidelines-sidebar {
    display: none;
  }

  .mobile-tab-bar {
    display: flex;
    position: sticky;
    top: var(--nav-height);
    z-index: 100;
    background: var(--bg);
    padding: 12px 0;
  }

  .guidelines-content section {
    scroll-margin-top: calc(var(--nav-height) + 72px);
  }

  .risk-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guidelines-title {
    font-size: 2.2rem;
  }

  .guidelines-subtitle {
    font-size: 1rem;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE — 600px (Mobile)
   ═══════════════════════════════════════ */
@media (max-width: 600px) {
  .guidelines-hero {
    padding-top: calc(var(--nav-height) + 32px);
    padding-bottom: 32px;
  }

  .guidelines-title {
    font-size: 1.8rem;
  }

  .guidelines-subtitle {
    font-size: 0.92rem;
  }

  .risk-cards-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .accordion-header {
    padding: 14px 16px;
  }

  .accordion-title {
    font-size: 14px;
  }

  .accordion-content p,
  .accordion-content ul {
    padding-left: 0;
    margin-left: 0;
  }

  .policy-note {
    margin-left: 0;
  }

  .accordion-left-icon {
    display: none;
  }

  .contact-card {
    padding: 20px;
  }

  .disclaimer-box {
    padding: 16px 18px;
  }

  .info-box {
    padding: 20px;
  }

  .guidelines-content section {
    margin-bottom: 48px;
    padding-top: 24px;
  }

  .guidelines-layout {
    padding-bottom: 48px;
  }
}
